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.
Mass. Gen. Laws ch. 248, § 2
By whom issued
Official source: Massachusetts Legislature. Reproduced from public-domain Massachusetts statutes; confirm against the official source for the current text. Not legal advice.