Any person authorized to do so pursuant to law may take bond, with security or without security, at discretion, in a sum not exceeding $5,000.00 per violation or offense for the appearance of any person accused or suspected of being guilty of a violation of any provision of this Code or any ordinance of the city, or any offense over which the municipal court has jurisdiction, to stand to and abide by his trial before the municipal court; and also of witnesses to testify in any case pending or about to be commenced in such court.