code: def install_pkg(path, pkg, base="fw/"):
      if pkg.split("==")[0] if "==" in pkg else pkg == "torch":
          subprocess.run(
              f"yes |pip3 install --upgrade {pkg} --target"
              f" {path} --default-timeout=100 --extra-index-url"
              "  --no-cache-dir",
              shell=True,
          )
      elif pkg.split("==")[0] if "==" in pkg else pkg == "jax":
          subprocess.run(
              f"yes |pip install --upgrade --target {path} 'jax[cuda12_pip]' -f"
              " https://storage.googleapis.com/jax-releases/jax_cuda_releases.html  "
              " --no-cache-dir",
              shell=True,
          )
      elif pkg.split("==")[0] if "==" in pkg else pkg == "paddle":
          subprocess.run(
              "yes |pip install "
              f" paddlepaddle-gpu=={get_latest_package_version('paddlepaddle')}"
              f" --target {path} -f https://mirror.baidu.com/pypi/simple "
              " --no-cache-dir",
              shell=True,
          )
      elif pkg.split("==")[0] if "==" in pkg else pkg == "tensorflow":
          subprocess.run(
              f"yes |pip install tensorflow[and-cuda] --target {path}",
              shell=True,
          )
      else:
          subprocess.run(
              f"yes |pip3 install --upgrade {pkg} --target"
              f" {path} --default-timeout=100   --no-cache-dir",
              shell=True,
          )
  
imports: import os
  import subprocess
  import sys
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: install_pkg(path, pkg, base) without return types