https://www.scconline.com/blog/post/2017/06/13/when-a-competent-court-grants-custody-habeas-corpus-cannot-be-granted-against-it/
When a competent court grants custody, Habeas Corpus cannot be granted against it