(1) Whenever any relative or friend of any person detained under the provisions of section 330 or section 335 desires that he shall be delivered to his care and custody, the State Government may, upon the application of such relative or friend and on his giving security to the satisfaction of such State Government, that the person delivered shall-
(a) be properly taken care of and prevented from doing injury to himself or to any other person;
(b) be produced for the inspection of such officer, and at such times and places, as the State Government may direct;
(c) in the case of a person detained under sub-section (2) of section 330, be produced when required before such Magistrate or Court, order such person to be delivered to such relative or friend.
(2) If the
person so delivered is accused of any offence, the trial of which has been
postponed by reason of his being of unsound mind and incapable of making his
defence, and the inspecting officer referred to in clause (b) of sub-section
(1), certifies at any time to the Magistrate or Court that such person is
capable of making his defence, such Magistrate or Court shall call upon the
relative or friend to whom such accused was delivered to produce him before the
Magistrate or Court; and, upon such production the Magistrate or Court shall
proceed in accordance with the provisions of section 332, and the certificate of
the inspecting office shall be receivable as evidence.
Code of Criminal Procedure (CrPC)
331 CrPC Resumption of inquiry or trial
332 CrPC Procedure on accused appearing before Magistrate or Court
333 CrPC When accused appears to have been of sound mind
334 CrPC Judgment of acquittal on ground of unsoundness of mind
335 CrPC Person acquitted on such ground to be detained in safe custody
336 CrPC Power of State Government to empower officer-in-charge to discharge
337 CrPC Procedure where lunatic prisoner is reported capable of making his defence
338 CrPC Procedure where lunatic detained is declared fit to be released