code: def generate_import_setting_file(
      package_name, json_dirname, props, maps, do_tiles, tile_size
  ):
      """Creates the PROPS and MAPS import_setting.json file needed
      as an argument for using the ImportAssets commandlet
      """
      importfile = os.path.join(os.getcwd(), IMPORT_SETTING_FILENAME)
      if os.path.exists(importfile):
          os.remove(importfile)
  
      with open(importfile, "w+") as fh:
          import_groups = []
          file_names = []
          import_settings = {
              "bImportMesh": 1,
              "bConvertSceneUnit": 1,
              "bConvertScene": 1,
              "bCombineMeshes": 1,
              "bImportTextures": 1,
              "bImportMaterials": 1,
              "bRemoveDegenerates": 1,
              "AnimSequenceImportData": {},
              "SkeletalMeshImportData": {},
              "TextureImportData": {},
              "StaticMeshImportData": {
                  "bRemoveDegenerates": 1,
                  "bAutoGenerateCollision": 1,
                  "bCombineMeshes": 0,
                  "bConvertSceneUnit": 1,
                  "bForceVerticesRelativeToTile": do_tiles,
                  "TileSize": tile_size,
              },
          }
  
          for prop in props:
              props_dest = "/" + "/".join(
                  [
                      "Game",
                      package_name,
                      "Static",
                      prop["tag"],
                      prop["name"],
                  ]
              )
  
              file_names = [os.path.join(json_dirname, prop["source"])]
              import_groups.append(
                  {
                      "ImportSettings": import_settings,
                      "FactoryName": "FbxFactory",
                      "DestinationPath": props_dest,
                      "bReplaceExisting": "true",
                      "FileNames": file_names,
                  }
              )
  
          for umap in maps:
              maps_dest = "/" + "/".join(
                  ["Game", package_name, "Maps", umap["name"]]
              )
  
              if "source" in umap:
                  tiles = [os.path.join(json_dirname, umap["source"])]
              else:
                  tiles = [
                      "%s" % (os.path.join(json_dirname, x))
                      for x in umap["tiles"]
                  ]
              import_groups.append(
                  {
                      "ImportSettings": import_settings,
                      "FactoryName": "FbxFactory",
                      "DestinationPath": maps_dest,
                      "bReplaceExisting": "true",
                      "FileNames": tiles,
                  }
              )
  
          fh.write(json.dumps({"ImportGroups": import_groups}))
          fh.close()
      return importfile
  
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 6 for calling a global function with example usage: generate_import_setting_file(package_name, json_dirname, props, maps, do_tiles, tile_size) and returns: importfile