The CrPC 1973 was replaced by the BNSS 2023 (in force 2024-07-01); no verified section mapping on file for Section 97 — confirm the corresponding provision (savings: Section 531, BNSS 2023).
If any District Magistrate, Sub-divisional Magistrate or Magistrate of the first class has reason to believe that any person is confined under such circumstances that the confinement amounts to an offence, he may issue, a search-warrant, and the person to whom such warrant is directed may search for the person so confined; and such search shall be made in accordance therewith, and the person, if found, shall be immediately taken before a Magistrate, who shall make such order as in the circumstances of the case seems proper.