code: def install(*packages):
      if any(
          _tf_re.match(package) for package in packages
      ) and b"tensorflow-gpu" in subprocess.check_output(
          [sys.executable, "-m", "pip", "freeze"], env=os.environ.copy()
      ):
          log.warning(
              "found tensorflow-gpu installed, so upgrading it instead of tensorflow"
          )
          packages = [
              _tf_re.sub(r"tensorflow-gpu\1", package)
              for package in packages
          ]
      result = subprocess.check_call(
          [
              sys.executable,
              "-m",
              "pip",
              "install",
              *[re.sub(r"\s", "", package) for package in packages],
          ],
          env=os.environ.copy(),
      )
      return result
  
file_path: DeepPavlov/deeppavlov/utils/pip_wrapper/pip_wrapper.py
imports: import os
  import re
  import subprocess
  import sys
  from logging import getLogger
  from pathlib import Path
  from deeppavlov.core.commands.utils import expand_path, parse_config
  from deeppavlov.core.data.utils import get_all_elems_from_json
label_desc: Use image node_id 1 for calling a global function with example usage: install() and returns: result