9-712. EXAMINATION OR PRODUCTION OF PRISONERS -- MOTION, AFFIDAVIT, AND ORDER. Such order can only be made on the motion of a party, upon affidavit showing the nature of the action or proceeding, the testimony expected from the witness and its materiality.