Every person arrested by warrant for any offense, when no other provision is made for that person's examination, must be taken before some magistrate of the county in which the warrant was issued, and the warrant with the proper return thereon, signed by the person who made the arrest, must be delivered to such magistrate. Any telegraphic copy of a warrant under which an officer has acted in making an arrest must be deemed the original warrant. If the offense charged in the warrant is a misdemeanor or infraction within the jurisdiction of a magistrate to try and upon conviction to punish, a trial must be had as is provided by law.
N.D.C.C. § 29-05-25