Section 164A(1) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(1)Any police officer not below the rank of Sub-Inspector, making an investigation of any offence punishable with death or imprisonment for seven years or' more, shall, in the course of such investigation, produce all persons whose statement appears to him to be material and essential for proper investigation of the case, to the nearest Judicial Magistrate for recording their statements.