The Code of Criminal Procedure, 1973 (CrPc)
244. Evidence for prosecution.
(1) When, in any warrant-case instituted other wise than on a police report the accused appears or is brought before a Magistrate, the Magistrate shall proceed to hear the prosecution and take all such evidence as may be produced in support of the prosecution.
(2) The Magistrate may, on the application of the prosecution, issue a summon to any of its witnesses directing him to attend or to produce any document or other thing.