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 there is a criminal proceeding or investigation by a grand jury or a criminal action pending in the court, that a person who is confined in a penal institution in this state may be a m