code: def get_apu_so_paths_by_props(android_ver, target_soc):
      so_path_array = []
      apu_version = get_apu_version(True, android_ver, target_soc)
      so_path = "third_party/apu/"
      if apu_version == 1 or apu_version == 2:
          if apu_version == 1:
              so_path += "android_Q/mt67xx/"
          else:
              so_path += "android_Q/mt68xx/"
          frontend_so_path = (
              so_path + "%s/libapu-frontend.so" % target_soc
          )
          if not os.path.exists(frontend_so_path):
              frontend_so_path = so_path + "libapu-frontend.so"
          so_path_array.append(frontend_so_path)
          so_path_array.append(
              so_path + "%s/libapu-platform.so" % target_soc
          )
      elif apu_version == 3:
          so_path += "android_R/"
          # For android R except mt689x&mt6877
          if target_soc != "mt6785":
              so_path_array.append(
                  so_path + "libapu-apuwareapusys.mtk.so"
              )
          so_path_array.append(so_path + "libapu-apuwareutils.mtk.so")
          so_path_array.append(so_path + "libapu-apuwarexrp.mtk.so")
          so_path_array.append(so_path + "libapu-frontend.so")
          so_path_array.append(so_path + "libapu-platform.so")
      else:  # For android S and mt689x&mt6877 on android R
          mace_check(apu_version == 4, "Invalid apu verison")
  
      return so_path_array
  
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 2 for calling a global function with example usage: get_apu_so_paths_by_props(android_ver, target_soc) and returns: so_path_array