The correct answer is habeas corpus petition
Habeas Corpus is an existing action in legal experience to protect the freedom of movement of individuals, that is, it serves to stop or prevent any illegal restriction on the right to come and go freely: in practice it is used to release people imprisoned illegally or to prevent possible illegal imprisonment.