code: def parse_args():
      argparser = argparse.ArgumentParser(description=__doc__)
      argparser.add_argument(
          "-i",
          "--input",
          type=str,
          help="Path of all the assets to convert",
      )
      argparser.add_argument(
          "-o",
          "--output",
          type=str,
          help="Path where all the assets will be after conversion. Default: current directory.",
      )
      argparser.add_argument(
          "--packages",
          type=str,
          help='(Optional) Packages to generate. Usage: "--packages=PkgeName1,PkgeName2"',
      )
      argparser.add_argument(
          "-v",
          "--verbose",
          action="store_true",
          default=False,
          help="Prints extra information",
      )
      argparser.add_argument(
          "--image",
          type=str,
          help='Use a specific Carla image. Default: "carla:latest"',
          default="carla:latest",
      )
      args = argparser.parse_args()
  
      if not args.output:
          args.output = os.getcwd()
  
      if args.packages is not None and args.packages and not args.input:
          print(
              docker_utils.RED
              + "[Error] The Input Path [-i|--input] must be specified "
              "if you are processing individual packages."
              + docker_utils.ENDC
          )
          exit(1)
  
      print()
  
      print(bold("- ") + bold_underline("Params:"))
      print(" - Output path: " + str(args.output))
      print(" - Packages:    " + str(args.packages))
      print(" - Input path:  " + str(args.input))
      print(" - Verbose:     " + str(args.verbose))
      print()
  
      return args
  
file_path: carla/Util/Docker/docker_tools.py
imports: from __future__ import print_function
  import argparse
  import docker
  import docker_utils
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: parse_args() and returns: args