A witness imprisoned or fined for contempt by an officer before whom his or her deposition is being taken may apply to the circuit judge, who shall have power to discharge the witness if it appears that the imprisonment is illegal.
Ark. Code § 16-43-206