Whenever it appears by affidavit that a person is illegally held in custody or restraint and there is good reason to believe that the applicant:
the court or judge may cause a warrant to be issued, reciting the facts and directed to the sheriff or any constable of the county, commanding the sheriff or constable to take the restrained person and immediately bring the person before the court or judge, to be dealt with according to law.
IC 34-25.5-6-1
Pre-1998 Recodification Citation: 34-1-57-19.