Officers of the police department and such officers as are assigned by the chief of police are authorized to direct all traffic by voice, hand, audible or other signal in conformance with traffic laws, except that in the event of a fire or other emergency or to expedite traffic or to safeguard pedestrian, officers of the police department or member of the fire department may direct traffic as conditions may require, notwithstanding the provisions to the contrary contained in this chapter or the Vehicle Code. (Prior code § 3002(a))