Petition of habeas corpus can be made before______________?

Petition of habeas corpus can be made before______________?

A. Court of Session
B. High Court
C. Both A and B
D. None of above