Sec. 3. SUMMONING WITNESS IN THIS STATE TO TESTIFY IN ANOTHER STATE. (a) A judge of a state court of record in another state, which by its laws has made provision for commanding persons confined in penal institutions within that state to attend and testify in this state, may certify that:
(1) there is a criminal proceeding or investigation by a grand jury or a criminal action pending in the court;
(2) a person who is confined in a penal institution in this state may be a material witness in the proceeding, investigation, or action; and
(3) his presence will be required during a specified time.
(b) On presentation of the certificate to any judge having jurisdiction over the person confined and on notice to the attorney general, the judge in this state shall fix a time and place for a hearing and shall make an order directed to the person having custody of the prisoner requiring that the prisoner be produced before him at the hearing.