(a)
A local agency may bring an action to determine the validity of its bonds, warrants, contracts, obligations or evidences of indebtedness pursuant to Chapter 9 (commencing with Section 860) of Title 10 of Part 2 of the Code of Civil Procedure.
(b)
A local agency that issues bonds, notes, or other obligations the proceeds of which are to be used to purchase, or to make loans evidenced or secured by, the bonds, warrants, contracts, obligations, or evidences of indebtedness of other local agencies, may bring a single action in the superior court of the county in which that local agency is located to determine the validity of the bonds, warrants, contracts, obligations, or evidences of indebtedness of the other local agencies, pursuant to Chapter 9 (commencing with Section 860) of Title 10 of Part 2 of the Code of Civil Procedure.