The governing body of any city, county, or city and county may by ordinance elect to have its building department assume responsibility, for in-plant inspections of all factory-built housing in all places of manufacture within the political limits of the jurisdiction of such city, county, or city and county. If certified by the department as qualified to perform such inspections, the building department shall be the local inspection agency within the city, county, or city and county. The governing body of any city, county, or city and county having a local inspection agency may, by ordinance, establish a reasonable inspection fee for in-plant inspections to defray the actual cost of inspections.