code: def apply_weather_presets(args, weather):
      """Uses weather presets to set the weather parameters"""
      if args.weather is not None:
          if args.weather in WEATHER_PRESETS:
              weather.cloudiness = WEATHER_PRESETS[args.weather][0]
              weather.precipitation = WEATHER_PRESETS[args.weather][1]
              weather.precipitation_deposits = WEATHER_PRESETS[
                  args.weather
              ][2]
              weather.wind_intensity = WEATHER_PRESETS[args.weather][3]
              weather.fog_density = WEATHER_PRESETS[args.weather][4]
              weather.fog_distance = WEATHER_PRESETS[args.weather][5]
              weather.fog_falloff = WEATHER_PRESETS[args.weather][6]
              weather.wetness = WEATHER_PRESETS[args.weather][7]
              weather.scattering_intensity = WEATHER_PRESETS[
                  args.weather
              ][8]
              weather.mie_scattering_scale = WEATHER_PRESETS[
                  args.weather
              ][9]
              weather.rayleigh_scattering_scale = WEATHER_PRESETS[
                  args.weather
              ][10]
              weather.dust_storm = WEATHER_PRESETS[args.weather][11]
          else:
              print(
                  "[ERROR]: Command [--weather | -w] '"
                  + args.weather
                  + "' not known"
              )
              sys.exit(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 2 for calling a global function with example usage: apply_weather_presets(args, weather) without return types