Cal. Penal Code § 1370.02
(b) If the defendant is found mentally incompetent, the court shall dismiss the pending revocation matter and return the defendant to supervision. If the revocation matter is dismissed pursuant to this subdivision, the court may, using the least restrictive option to meet the mental health needs of the defendant, also do any of the following:
(c)
(2) If the parolee is returned to parole supervision, the court may, using the least restrictive option to meet the mental health needs of the parolee, do any of the following: