38.—(1) Whenever the presence of any person confined in a prison is required in any court of civil or criminal jurisdiction, the court may issue an order in writing addressed to the Superintendent requiring the production before the court of the person in proper custody at the time and place to be named in the order.
(2) The Superintendent shall cause the person named in the order to be brought up as directed, and shall provide for his safe custody during his absence from prison.
(3) Every court may by endorsement on the order require the person named therein to be again brought up at any time to which the matter wherein the person is required may be adjourned.
(4) Every such order issued by the Supreme Court may be signed by the Registrar of the Court, and if issued by a District Court, may be signed by the Judge or Registrar thereof, and if issued by any other court, shall be signed by the Magistrate or Coroner, as the case may be.