code: def import_assets_from_json_list(json_list, batch_size):
      maps = []
      package_name = ""
      for dirname, filename in json_list:
          # Read json file
          with open(os.path.join(dirname, filename)) as json_file:
              data = json.load(json_file)
              # Take all the fbx registered in the provided json files
              # and place it inside unreal in the provided path (by the json file)
              maps = []
              props = []
              tile_size = 2000
              if "maps" in data:
                  maps = data["maps"]
                  if len(maps) > 0 and "tile_size" in maps[0]:
                      tile_size = maps[0]["tile_size"]
              if "props" in data:
                  props = data["props"]
  
              package_name = filename.replace(".json", "")
  
              # we need to build the binary file for navigation of pedestrians
              thr = threading.Thread(
                  target=build_binary_for_navigation,
                  args=(
                      package_name,
                      dirname,
                      maps,
                  ),
              )
              thr.start()
  
              if len(maps) > 0 and "tiles" in maps[0]:
                  import_assets(
                      package_name,
                      dirname,
                      props,
                      maps,
                      1,
                      tile_size,
                      batch_size,
                  )
              else:
                  import_assets(
                      package_name, dirname, props, maps, 0, 0, 0
                  )
  
              if not package_name:
                  print(
                      "No Packages JSONs found, nothing to import. Skipping package."
                  )
                  continue
  
              # First we only move the meshes to the tagged folders for semantic segmentation
              move_assets_commandlet(package_name, maps)
  
              # We prepare only the maps for cooking after moving them. Props cooking will be done from Package.sh script.
              if len(maps) > 0:
                  prepare_maps_commandlet_for_cooking(
                      package_name, only_prepare_maps=True
                  )
                  load_asset_materials_commandlet(package_name)
                  build_binary_for_tm(package_name, dirname, maps)
              thr.join()
  
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 10 for calling a global function with example usage: import_assets_from_json_list(json_list, batch_size) without return types