code: def _get_pip_install():
      python = "python" if sys.platform == "win32" else "python3"
      ret = [python, "-m", "pip", "install"]
      if (
          "CONDA_DEFAULT_ENV" not in os.environ
          and "VIRTUAL_ENV" not in os.environ
          and (sys.platform != "win32" and os.getuid() != 0)
      ):  # on unix and not running in root
          ret.append("--user")  # not in virtualenv or conda
      return ret
  
file_path: nni/nni/tools/nnictl/command_utils.py
imports: from subprocess import call, check_output
  import sys
  import os
  import time
  import signal
  import psutil
  from .common_utils import print_error, print_warning
label_desc: Use image node_id 7 for calling a global function with example usage: _get_pip_install() and returns: ret