Whoever is unlawfully restrained of his liberty, or entitled to the custody of another, of which custody such person is unlawfully deprived, may prosecute a writ of habeas corpus, to inquire into the cause of such imprisonment, restraint, or deprivation.
R.C. §2725.01