code: def get_version(flags):
      device_id = get_cur_device_id(flags)
      if device_id is not None:
          android_device = device.create_device(
              flags.target_abi, device_id
          )
          target_props = android_device.info()
          target_soc = target_props["ro.board.platform"]
          android_ver = (int)(target_props["ro.build.version.release"])
          apu_version = get_apu_version(True, android_ver, target_soc)
      else:
          apu_version = 4
          MaceLogger.warning(
              "Can not get unique device ID, MACE select the"
              " latest apu version: %s" % apu_version
          )
      sys.exit(apu_version)
  
file_path: mace/tools/python/apu_utils.py
imports: import argparse
  import os
  import sys
  from utils import device
  from utils.util import MaceLogger
  from utils.util import mace_check
label_desc: Use image node_id 6 for calling a global function with example usage: get_version(flags) without return types