code: def build_binary_for_tm(package_name, dirname, maps):
      xodrs = set(
          (map["name"], map["xodr"]) for map in maps if "xodr" in map
      )
  
      for target_name, xodr in xodrs:
          with open(os.path.join(dirname, xodr), "rt") as f:
              data = f.read()
  
          # copy the binary file
          tm_folder_target = os.path.join(
              CARLA_ROOT_PATH,
              "Unreal",
              "CarlaUE4",
              "Content",
              package_name,
              "Maps",
              target_name,
              "TM",
          )
  
          if not os.path.exists(tm_folder_target):
              os.makedirs(tm_folder_target)
  
          m = carla.Map(str(target_name), data)
          m.cook_in_memory_map(
              str(
                  os.path.join(tm_folder_target, "%s.bin" % target_name)
              )
          )
  
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 15 for calling a global function with example usage: build_binary_for_tm(package_name, dirname, maps) without return types