system
Provide accurate and complete responses to the user's questions.
human
Write a simplified explanation of this legal concept.
Relevant data:
"Habeas corpus is a legal action that allows a person who is imprisoned to petition the court for release if they believe they are being held unfairly or unlawfully."
gpt
Habeas corpus is a legal way for someone in jail to ask to be let go if they think they didn't do anything wrong or shouldn't be there.