Except as otherwise provided in this chapter, whenever the department or commission is a defendant or respondent in any proceeding, or when there is any legal challenge to regulations issued by the commission or department, venue for the proceeding shall be in the County of Sacramento, the City and County of San Francisco, the County of Los Angeles, or the County of San Diego.