General Laws

Section 2. The writ may be issued, irrespective of the county in which the person is imprisoned or restrained, by the supreme judicial or the superior court, by a probate or a district court or by a judge of any of said courts.