code: def run_models_for_device(flags, args, dev):
      conf = config_parser.parse(flags.config)
      for name, model_conf in conf["models"].items():
          if not flags.model_name or name == flags.model_name:
              MaceLogger.info("Run model %s" % name)
              model_conf = config_parser.normalize_model_config(
                  model_conf
              )
              run_model_for_device(flags, args, dev, name, model_conf)
  
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 4 for calling a global function with example usage: run_models_for_device(flags, args, dev) without return types