code: def device_class(target_abi):
      device_dispatch = {
          "host": "HostDevice",
          "armeabi-v7a": "AndroidDevice",
          "arm64-v8a": "AndroidDevice",
          "arm-linux-gnueabihf": "ArmLinuxDevice",
          "aarch64-linux-gnu": "ArmLinuxDevice",
      }
  
      if target_abi not in device_dispatch:
          raise ValueError(
              "target_abi should be one of %s" % device_dispatch.keys()
          )
  
      return globals()[device_dispatch[target_abi]]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import os
  import re
  import subprocess
  import random
  import tempfile
  from utils import util
label_desc: Use image node_id 2 for calling a global function with example usage: device_class(target_abi) and returns: globals