Perry had been taking the drug legally as a treatment for depression. But his regular doctor wouldn't prescribe it in the amounts he wanted.

Doctor Salvador Plasencia faces sentencing for illegally selling ketamine to Matthew Perry before the actor's overdose death.

A doctor who pleaded guilty earlier this year to providing ketamine to the late "Friends" star Matthew Perry is set to be sentenced Wednesday.