Any judge of a state court of record in another state, which by its laws has made provisions for commanding persons confined in penal institutions within that state to attend and testify in this state, may certify:
Upon presentation of the certificate to any judge having jurisdiction over the person confined or to any judge having jurisdiction in the location where the person is confined, and upon 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 the judge at the hearing.
SDCL 23A-14A-2