Members of the California Highway Patrol are authorized to direct traffic according to law, and, in the event of a fire or other emergency, or to expedite traffic or insure safety, may direct traffic as conditions may require notwithstanding the provisions of this code.