law: 156. Removal of insane prisoners.
  If any person imprisoned or undergoing detention by virtue of this Act shall become insane, and a certificate to that effect shall be given by two physicians or surgeons, the Central Government shall, by warrant in the prescribed form, direct the removal of such person to such asylum or other proper receptacle for insane persons in India as it may judge proper for the unexpired term of his imprisonment or detention; and if any such person shall in the same manner be certified to be again of sound mind, the Central Government may issue a warrant in the prescribed form for his being removed to such prison or place of confinement or in the case of a person sentenced to detention, such naval detention quarters as may be deemed expedient, to undergo the remainder of his punishment, and every gaoler or keeper of any prison, gaol, or house of correction shall receive him accordingly.