The committing magistrate or the city court clerk of any incorporated municipality or city or that person's deputies, before whom a defendant is brought for examination on a warrant of arrest, are authorized to take bail, either for the defendant's appearance for examination or for the defendant's appearance at court to answer the charge.