Section 147(2) in The Code of Criminal Procedure, 1973
(2)The Magistrate shall then peruse the statements so put in, hear the parties, receive all such evidence as may be produced by them respectively, consider the effect of such evidence, take such further evidence, if any, as he thinks necessary and, if possible, decide whether such right exists; and the provisions of section 145 shall, so far as may be, apply in the case of such inquiry.