Custody and control of the petitioner shall be retained by the Department of Corrections or other authority having custody of the petitioner. It shall be the duty of the department or authority to produce the petitioner at such times and places as the court may direct.
OCGA § 9-14-46