code: def get_cur_device_id(flags):
      run_devices = device.choose_devices(flags.target_abi, "all")
      run_device = None
      device_num = len(run_devices)
      if device_num == 0:  # for CI
          MaceLogger.warning(
              "No Android devices are plugged in, "
              "you need to copy `apu` so files by yourself."
          )
      elif device_num > 1:  # for CI
          MaceLogger.warning(
              "More than one Android devices are plugged in, "
              "you need to copy `apu` so files by yourself."
          )
      else:
          run_device = run_devices[0]
  
      return run_device
  
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 5 for calling a global function with example usage: get_cur_device_id(flags) and returns: run_device