Section 148 of Criminal Procedure Code CAP 75: Power of court to order prisoner to be brought up for examination
(1) A court desirous of examining, as a witness, in a case pending before it, aperson confined in prison within the local limits of its jurisdiction, may issue an order to the officer in charge of the prison requiring him to bring the prisoner in proper custody, at a time to be named in the order, before the court for examination.
(2) The officer so in charge, on receipt of the order, shall act in accordance therewith, and shall provide for the safe custody of the prisoner during his absence from the prison.
Check the current authoritative text and amendment history before relying on this provision.