code: def main():
      argparser = argparse.ArgumentParser(
          description="CARLA Sensor tutorial"
      )
      argparser.add_argument(
          "--host",
          metavar="H",
          default="127.0.0.1",
          help="IP of the host server (default: 127.0.0.1)",
      )
      argparser.add_argument(
          "-p",
          "--port",
          metavar="P",
          default=2000,
          type=int,
          help="TCP port to listen to (default: 2000)",
      )
      argparser.add_argument(
          "--sync",
          action="store_true",
          help="Synchronous mode execution",
      )
      argparser.add_argument(
          "--async",
          dest="sync",
          action="store_false",
          help="Asynchronous mode execution",
      )
      argparser.set_defaults(sync=True)
      argparser.add_argument(
          "--res",
          metavar="WIDTHxHEIGHT",
          default="1280x720",
          help="window resolution (default: 1280x720)",
      )
  
      args = argparser.parse_args()
  
      args.width, args.height = [int(x) for x in args.res.split("x")]
  
      try:
          client = carla.Client(args.host, args.port)
          client.set_timeout(5.0)
  
          run_simulation(args, client)
  
      except KeyboardInterrupt:
          print("\nCancelled by user. Bye!")
  
imports: import glob
  import os
  import sys
  import carla
  import argparse
  import random
  import time
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types