code: def run_models(flags, args):
      if flags.device_conf:
          device_conf = config_parser.parse_device_info(
              flags.device_conf
          )
          device.ArmLinuxDevice.set_devices(device_conf)
  
      run_devices = device.choose_devices(
          flags.target_abi, flags.target_socs
      )
      MaceLogger.info("Run on devices: %s" % run_devices)
  
      for device_id in run_devices:
          dev = device.create_device(flags.target_abi, device_id)
          if len(
              flags.devices_to_run
          ) > 0 and device_id not in flags.devices_to_run.split(","):
              continue
          run_models_for_device(flags, args, dev)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import os
  import tempfile
  import shutil
  import numpy
  from apu_utils import get_apu_so_paths
  from py_proto import mace_pb2
  from utils import util
  from utils import device
  from utils import config_parser
  from utils.config_parser import DeviceType
  from utils.target import Target
  from utils.config_parser import ModelKeys
  from utils.util import ABIType
  from utils.util import MaceLogger
  from utils.util import mace_check
  import run_target
  import validate
label_desc: Use image node_id 3 for calling a global function with example usage: run_models(flags, args) without return types