Any judge of the superior court may issue an order to any officer having a lawfully imprisoned person in his or her custody, requiring the production of such person before the court for the purpose of giving evidence in any criminal cause pending therein, without any formal application or writ of habeas corpus ad testificandum for that purpose.
OCGA § 24-13-61