Section 347(1) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(1)If in an enquiry before a Magistrate, or in any trial before a Magistrate, before signing judgement, it appears to him at any stage of the proceedings that the case is one which ought to be tried by the Court of Session or High Court, and if he is empowered to commit for trial, he shall commit the accused under the provisions hereinbefore contained.