Upon application of a witness imprisoned by an officer, a judge of the supreme court or district court may discharge him if it appears that his imprisonment is illegal.
Wyo. Stat. Ann. § 1-12-109
Discharge of imprisoned witness
Official source: Wyoming Legislature. Reproduced from public-domain Wyoming statutes; confirm against the official source for the current text. Not legal advice.