Government Code § 26507
ARTICLE 1. Duties as Public Prosecutor
A district attorney, city attorney, or any combination thereof, may, in agreement with other district attorneys or city attorneys, act jointly in prosecuting a civil cause of action of benefit to his own county in a court of the other jurisdiction.