LOS ANGELES — A federal judge on Wednesday handed down a sentence of 15 years in prison to a woman who pleaded guilty to selling actor Matthew Perry the ketamine that killed him in 2023.

“You’re going to have to show some epic resilience,” Judge Sherilyn Peace Garnett said to Jasveen Sangha, echoing the defendant’s words earlier in the hearing about her self-improvement.

Citing the unique role Sangha admitted to playing in Perry’s death and her broader drug-dealing business, the judge gave the 42-year-old a sentence that will almost certainly be more than all four of her co-defendants combined.

The hearing Wednesday in a Los Angeles courtroom was in many ways the pinnacle of the 2½-year investigation and prosecution that followed the overdose death of the 54-year-old actor, whose role as Chandler Bing on NBC’s “Friends” in the 1990s and 2000s made him one of the biggest television stars of the era.

Keith Morrison, Perry’s stepfather and correspondent for NBC’s “Dateline,” told the judge that he and Perry’s mother, Suzanne, feel a “daily, grinding sadness and sorrow.”

“There was a spark to that man I have never seen anywhere else,” Morrison said. “He should have had another act. Two more acts.”