Discuss when a Writ of Habeas Corpus is used and provide a real-life example in your answer.

Writ of Habeas Corpus

Discuss when a Writ of Habeas Corpus is used and provide a real-life example in your answer.