Here we are going to explain what is section 18 in CrPC (Code of Criminal Procedure).
Special Metropolitan Magistrates:
High Court may, if requested by any Central or State Government so to do,
confer upon any person who holds or has held any post under the Government, all
or any of the powers conferred or conferrable by or under this Code on a
Metropolitan Magistrate, in respect to particular cases or to particular
classes of cases in any metropolitan area within its local jurisdiction;
Provided that no such power shall be conferred on a person unless he possesses such qualification or experience in relation to legal affairs as the High Court may, by rules, specify.
2. Such Magistrates shall be called Special Metropolitan Magistrates and shall be appointed for such term, not exceeding one year at a time, as the High Court may, by general or special order, direct.
3. The High Court or the State Government, as the case may be, may empower any Special Metropolitan Magistrate to exercise, in any local area outside the metropolitan area, the powers of a Judicial Magistrate of the first class.