(a) Whenever any person is arrested for any violation of this chapter punishable as a misdemeanor, the arrested person shall be immediately taken before a magistrate or court within the county in which the offense charged is alleged to have been committed and who has jurisdiction of the offense and is nearest or most accessible with reference to the place where the arrest is made, in any of the following cases:
(1) When a person arrested demands an immediate appearance before a magistrate or court;