Upon receipt of the commission, the Chief Metropolitan Magistrate of Chief Judicial Magistrate, or such Metropolitan or Judicial Magistrate as he may appoint in this behalf, shall summon the witness before him or proceed to the place where the witness is, and shall take down his evidence in the same manner, and may for this purpose exercise the same powers, as in trials of warrant cases under this Code.