Section 328(3) in The Code of Criminal Procedure, 1973
(3)[ If such Magistrate is informed that the person referred to in sub-Section (1-A) is a person of unsound mind, the Magistrate shall further determine whether the unsoundness of mind renders the accused incapable of entering defence and if the accused is found so incapable, the Magistrate 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 he finds that no prima facie case is made out against the accused, he shall, instead of postponing the enquiry, discharge the accused and deal with him in the manner provided under Section 330.Provided that if the Magistrate 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 proceeding for such period, as in the opinion of the psychiatrist or clinical psychologist, is required for the treatment of the accused, and order the accused to be dealt with as provided under Section 330.