For any offense against the United States, the offender may, by any justice or judge of the United States, or by any United States magistrate judge, or by any chancellor, judge of a supreme or superior court, chief or first judge of the common pleas, mayor of a city, justice of the peace, or other magistrate, of any state where the offender may be found, and at the expense of the United States, be arrested and imprisoned or released as provided in chapter
207 of this title, as the case may be, for trial before such court of the United States as by law has cognizance of the offense. Copies of the process shall be returned as speedily as may be into the office of the clerk of such court, together with the recognizances of the witnesses for their appearances to testify in the case.
A United States judge or magistrate judge shall proceed under this section according to rules promulgated by the Supreme Court of the United States. Any state judge or magistrate acting hereunder may proceed according to the usual mode of procedure of his state but his acts and orders shall have no effect beyond determining, pursuant to the provisions of section
3142 of this title, whether to detain or conditionally release the prisoner prior to trial or to discharge him from arrest.