code: def run_target_origin(
      target_abi, install_dir, target_obj, device_ids="all"
  ):
      if not install_dir:
          install_dir = default_install_dir(target_abi)
  
      run_devices = device.choose_devices(target_abi, device_ids)
  
      print("Run on devices: %s" % run_devices)
  
      for device_id in run_devices:
          # initiate device
          dev = device.create_device(target_abi, device_id)
  
          # reinstall target
          print(
              "Install target from %s to %s"
              % (target_obj.path, install_dir)
          )
          device_target = dev.install(
              target_obj, install_dir, install_deps=True
          )
          print(device_target)
  
          # run on device
          print("Runing ...")
          with util.device_lock(device_id):
              dev.run(device_target)
  
file_path: mace/tools/python/run_target.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import os
  from utils import device
  from utils import target
  from utils import config_parser
  from utils import util
label_desc: Use image node_id 2 for calling a global function with example usage: run_target_origin(target_abi, install_dir, target_obj, device_ids) without return types