writ of habeas corpus

definition: a writ ordering a prisoner to be brought before a judge
example:
speech part: noun
synonyms: habeas corpus

How writ of habeas corpus is being used?