code: def apply_lights_to_cars(args, world):
      if args.cars is None:
          return
  
      light_mask = carla.VehicleLightState.NONE
      for option in args.cars:
          light_mask |= CAR_LIGHTS[option][0]
  
      # Get all cars in level
      all_vehicles = world.get_actors()
      for ve in all_vehicles:
          if "vehicle." in ve.type_id:
              ve.set_light_state(carla.VehicleLightState(light_mask))
  
file_path: carla/PythonAPI/util/environment.py
imports: import glob
  import os
  import sys
  import argparse
  import carla
label_desc: Use image node_id 4 for calling a global function with example usage: apply_lights_to_cars(args, world) without return types