Writ of habeas corpus: What it is and when to use it