Where a person is arrested or detained by an organ other than by a decision of the court, the said person, or any other person, may petition the district court that has jurisdiction ratione loci for the place of the arrest or detention for habeas corpus.