(a) A county or district attorney or a deputy county or district attorney shall conduct each prosecution in a justice court.
(b) Except as otherwise provided by law, a district attorney or a deputy district attorney with the consent of the county attorney may prosecute an appeal from a justice court.
(c) A municipal attorney or a deputy municipal attorney shall conduct each prosecution in a municipal court.
(d) The county attorney of the county in which a municipality is located may also represent the state in a prosecution in a municipal court in that municipality. The county attorney is not entitled to receive any fees or other compensation for representing the state in a prosecution described by this subsection.
(e) With the consent of the county attorney, a municipal attorney or a deputy municipal attorney may prosecute an appeal from a municipal court to a county court, county court at law, or appellate court.