(a) Upon presentation by the prosecuting attorney or interested defense counsel of a petition duly verified and for good cause, any circuit court having jurisdiction of any criminal offense involving a felony pending for trial in that court may have jurisdiction and authority to provide by proper order for the presence in court, and for the trial and as a witness, of any person incarcerated in the Division of Correction whose testimony would be material either for the State of Arkansas or for the defendant in the action.
(b) Upon the granting of a petition by the circuit court pursuant to subsection (a) of this section and upon presentation to the authorized officials of the division of a signed order or certified copy thereof by the circuit clerk of such court, the officials having custody of the prisoner are authorized and directed to transport or cause to be transported the prisoner by such means and methods as they deem proper, at the time and place as directed by the order of the circuit court.
(c) The custody of a prisoner sought to be used as a witness shall at all times remain in the authorized officials of the division, subject to the order and direction of the circuit court. Immediately upon the completion of the testimony by the prisoner in court or upon the completion of the trial requiring his or her presence, the prisoner shall be immediately returned to the division by the official having his or her custody.