code: def apply_lights_manager(args, light_manager):
      if args.lights is None:
          return
  
      light_group = "None"
      if args.lightgroup is not None:
          light_group = args.lightgroup
  
      # filter by group
      lights = light_manager.get_all_lights(
          LIGHT_GROUP[light_group][0]
      )  # light_group
  
      i = 0
      while i < len(args.lights):
          option = args.lights[i]
  
          if option == "on":
              light_manager.turn_on(lights)
          elif option == "off":
              light_manager.turn_off(lights)
          elif option == "intensity":
              light_manager.set_intensity(
                  lights, int(args.lights[i + 1])
              )
              i += 1
          elif option == "color":
              r = int(args.lights[i + 1])
              g = int(args.lights[i + 2])
              b = int(args.lights[i + 3])
              light_manager.set_color(lights, carla.Color(r, g, b))
              i += 3
  
          i += 1
  
file_path: carla/PythonAPI/util/environment.py
imports: import glob
  import os
  import sys
  import argparse
  import carla
label_desc: Use image node_id 5 for calling a global function with example usage: apply_lights_manager(args, light_manager) without return types