Power to Grant Writs of Habeas Corpus. Writs of habeas corpus may be granted by the Commonwealth Superior Court or any of its judges. Every person unlawfully imprisoned or restrained of his or her liberty under any pretense whatsoever, or any person on behalf of an unlawfully imprisoned individual, may apply for a writ of habeas corpus to inquire into the cause of the imprisonment or restraint. Source: 9 TTC § 101, modified.