Section 2(1)(l) in The Mental Healthcare Act, 2017
(l)"Magistrate" means-(i)in relation to a metropolitan area within the meaning of clause (k) of section 2 of the Code of Criminal Procedure, 1973, a Metropolitan Magistrate;(ii)in relation to any other area, the Chief Judicial Magistrate, Subdivisional Judicial Magistrate or such other Judicial Magistrate of the first class as the State Government may, by notification, empower to perform the functions of a Magistrate under this Act;