If it is found that the defendant is sane, the warden must proceed to execute the judgment as specified in the warrant; if it is found that the defendant is insane, the warden must suspend the execution and transmit a certified copy of the order mentioned in the last section to the Governor, and deliver the defendant, together with a certified copy of such order, to the superintendent of the medical facility named in such order. When the defendant recovers his sanity, the superintendent of such medical facility must certify that fact to the judge of the superior court from which the defendant was committed as insane, who must thereupon fix a date upon which, after 10 days’ written notice to the defendant and the district attorney of the county from which the defendant was originally sentenced and the district attorney of the county from which he was committed to the medical facility, a hearing shall be had before said judge sitting without a jury to determine whether or not the defendant has in fact recovered his sanity. If the defendant appears without counsel, the court shall appoint counsel to represent him at said hearing. If the judge should determine that the defendant has recovered his sanity he must certify that fact to the Governor, who must thereupon issue to the warden his warrant appointing a day for the execution of the judgment, and the warden shall thereupon return the defendant to the state prison pending the execution of the judgment. If, however, the judge should determine that the defendant has not recovered his sanity he shall direct the return of the defendant to a medical facility of the Department of Corrections, to be there kept in safe confinement until his sanity is restored.
(Amended by Stats. 1971, Ch. 1136.)