code: def run(self, target):
      tmpdirname = tempfile.mkdtemp()
      cmd_file_path = tmpdirname + "/cmd.sh"
      with open(cmd_file_path, "w") as cmd_file:
          cmd_file.write(str(target))
      target_dir = os.path.dirname(target.path)
      execute(
          "adb -s %s push %s %s"
          % (self._device_id, cmd_file_path, target_dir)
      )
  
      out = execute(
          "adb -s %s shell sh %s"
          % (self._device_id, target_dir + "/cmd.sh")
      )
      # May have false positive using the following error word
      for line in out.split("\n")[:-10]:
          if (
              "Aborted" in line
              or "FAILED" in line
              or "Segmentation fault" in line
          ):
              raise Exception(line)
  
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 5 for calling the AndroidDevice obj's underlying member method code with example usage: obj.run(target) without return types