A state writ of habeas corpus petition is considered an “extraordinary remedy” and is typically used as a last resort among prisoners who have already tried and failed to overturn their conviction on appeal.