Section 340(1)(d) in The Code of Criminal Procedure, 1973
(d)take sufficient security for the appearance of the accused before such Magistrate, or if the alleged offence is non-bailable and the Court thinks it necessary so to do, send the accused in custody to such magistrate; and