The municipal judge shall have full power and authority to try all offenders of the ordinances of the city and impose such penalties for violations thereof as may be prescribed by the ordinances of the city. Before entering upon the duties of his or her office, he or she shall take and subscribe an oath, before an officer authorized to administer oaths, faithfully to discharge the duties of the office. Any duties of the municipal judge not herein enumerated may be prescribed by ordinance.