code: def generate_package_file(package_name, props, maps):
      """Creates the PackageName.Package.json file for the package."""
      output_json = {}
  
      output_json["props"] = []
      for prop in props:
          name = prop["name"]
          size = prop["size"]
          source_name = os.path.basename(prop["source"]).split(".")
          if len(source_name) < 2:
              print(
                  "[Warning] File name '"
                  + prop["source"]
                  + "' contains multiple dots ('.')"
              )
  
          source_name = ".".join([source_name[0], source_name[0]])
  
          path = "/" + "/".join(
              [
                  "Game",
                  package_name,
                  "Static",
                  prop["tag"],
                  prop["name"],
                  source_name,
              ]
          )
  
          output_json["props"].append(
              {
                  "name": name,
                  "path": path,
                  "size": size,
              }
          )
  
      output_json["maps"] = []
      for umap in maps:
          path = "/" + "/".join(
              ["Game", package_name, "Maps", umap["name"]]
          )
          use_carla_materials = (
              umap["use_carla_materials"]
              if "use_carla_materials" in umap
              else False
          )
          output_json["maps"].append(
              {
                  "name": umap["name"],
                  "path": path,
                  "use_carla_materials": use_carla_materials,
              }
          )
  
      package_config_path = os.path.join(
          CARLA_ROOT_PATH,
          "Unreal",
          "CarlaUE4",
          "Content",
          package_name,
          "Config",
      )
      if not os.path.exists(package_config_path):
          try:
              os.makedirs(package_config_path)
          except OSError as exc:
              if exc.errno != errno.EEXIST:
                  raise
  
      with open(
          os.path.join(
              package_config_path, package_name + ".Package.json"
          ),
          "w+",
      ) as fh:
          json.dump(output_json, fh, indent=4)
  
imports: from __future__ import print_function
  import errno
  import fnmatch
  import glob
  import json
  import os
  import shutil
  import subprocess
  import sys
  import argparse
  import threading
  import copy
  import carla
label_desc: Use image node_id 7 for calling a global function with example usage: generate_package_file(package_name, props, maps) without return types