law: 5. Functions exercisable by Judicial and Executive Magistrates.-
  Where under any law the functions exercisable by a Magistrate relate to matters which involve the appreciation or sifting of evidence or the formulation of any decision which exposes any person to any punishment, or penalty, or detention in custody pending investigation, inquiry or trial or would have the effect of sending him for trial before any Court, such functions shall, subject to the provisions of this Act and the Code of Criminal Procedure, 18982 (5 of 1898) as amended by this Act, be exercisable by a Judicial Magistrate and where such functions relate to matters which are administrative or executive in nature, such as the grant of a licence, the suspension or cancellation of a licence, sanctioning a prosecution, or withdrawing from a prosecution, they shall, subject as aforesaid, be exercisable by an Executive Magistrate.