habeas corpus petitions — Legal Definition, Examples & Cases