A peace officer or other person who willfully and wrongfully delays taking an arrested person before a judge having appropriate criminal jurisdiction is guilty of a gross misdemeanor.