Government Code section 72193
(a)
The city prosecutor shall prosecute all such misdemeanors committed within the city, and handle all appeals arising from it. The city prosecutor shall draw complaints for such misdemeanors, and shall prosecute all recognizances or bail bond forfeitures arising from or resulting from the commission of such offenses.(b)
Whenever any person applying for a writ of habeas corpus is held in custody by any peace officer of such city, charged with having committed within the city any misdemeanor, a copy of the application for such writ shall be served upon such city prosecutor at the time and in the manner provided by law for the service of writs of habeas corpus upon district attorneys. On behalf of the people, the prosecutor shall conduct all proceedings relating to such application. If the constitutionality of any law is questioned in any such habeas corpus proceeding, the city prosecutor shall immediately notify the city attorney who may take charge of the proceedings on behalf of the people, or become associated with the city prosecutor in the proceedings.
Source:
Section 72193, https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=GOV§ionNum=72193.
(accessed May 4, 2025).