code: def install(self, target, install_dir, install_deps=False):
      install_dir = os.path.abspath(install_dir)
  
      if install_dir.strip() and install_dir != os.path.dirname(
          target.path
      ):
          execute("mkdir -p %s" % install_dir)
          if os.path.isdir(target.path):
              execute("cp -f %s/* %s" % (target.path, install_dir))
          else:
              execute("cp -f %s %s" % (target.path, install_dir))
          for lib in target.libs:
              execute("cp -f %s %s" % (lib, install_dir))
  
          target.path = "%s/%s" % (
              install_dir,
              os.path.basename(target.path),
          )
          target.libs = [
              "%s/%s" % (install_dir, os.path.basename(lib))
              for lib in target.libs
          ]
  
      target.envs.append("LD_LIBRARY_PATH=%s" % install_dir)
  
      return target
  
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 3 for calling the HostDevice obj's underlying member method code with example usage: obj.install(target, install_dir, install_deps) and returns: target