Researchers tested psilocybin, a psychedelic compound from magic mushrooms, as a treatment for cocaine addiction.