code: def invoke_commandlet(name, arguments):
      """Generic function for running a commandlet with its arguments."""
      ue4_path = os.environ["UE4_ROOT"]
      uproject_path = os.path.join(
          CARLA_ROOT_PATH, "Unreal", "CarlaUE4", "CarlaUE4.uproject"
      )
      run = "-run=%s" % (name)
  
      if os.name == "nt":
          sys_name = "Win64"
          editor_path = "%s/Engine/Binaries/%s/UE4Editor" % (
              ue4_path,
              sys_name,
          )
          command = [editor_path, uproject_path, run]
          command.extend(arguments)
          print("Commandlet:", command)
          subprocess.check_call(command, shell=True)
      elif os.name == "posix":
          sys_name = "Linux"
          editor_path = "%s/Engine/Binaries/%s/UE4Editor" % (
              ue4_path,
              sys_name,
          )
          full_command = "%s %s %s %s" % (
              editor_path,
              uproject_path,
              run,
              " ".join(arguments),
          )
          print("Commandlet:", full_command)
          subprocess.call([full_command], shell=True)
  
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 5 for calling a global function with example usage: invoke_commandlet(name, arguments) without return types