Section 329(2) in The Code of Criminal Procedure, 1973
(2)[ If such Magistrate or Court is informed that the person referred to in sub-Section (1-A) is a person of unsound mind, the Magistrate or Court shall further determine whether unsoundness of mind renders the accused incapable of entering defence and if the accused is found so incapable, the Magistrate or Court shall record a finding to that effect and shall examine the record of evidence produced by the prosecution and after hearing the advocate of the accused but without questioning the accused, if the Magistrate or Court finds that no prima cacie case is made out against the accused, he or it shall, instead of postponing the trial, discharge the accused and deal with him in the manner provided under Section 330:Provided that if the Magistrate or Court finds that a prima facie case is made out against the accused in respect of whom a finding of unsoundness of mind is arrived at, he shall postpone the trial for such period, as in the opinion of the psychiatrist or clinical psychologist, is required for the treatment of the accused.