code: def install_python_packages(
      self, cuda_version, requirements_file_path, nightly
  ):
      check = "where" if platform.system() == "Windows" else "which"
      if os.system(f"{check} conda") == 0:
          # conda install command should run before the pip install commands
          # as it may reinstall the packages with different versions
          os.system("conda install -y conda-build")
  
      # Install PyTorch packages
      if nightly:
          os.system(
              f"pip3 install numpy --pre torch torchvision torchtext torchaudio --force-reinstall --extra-index-url https://download.pytorch.org/whl/nightly/{cuda_version}"
          )
      else:
          self.install_torch_packages(cuda_version)
  
      os.system(f"{sys.executable} -m pip install -U pip setuptools")
      # developer.txt also installs packages from common.txt
      os.system(
          f"{sys.executable} -m pip install -U -r {requirements_file_path}"
      )
  
      # Install dependencies for GPU
      if not isinstance(cuda_version, type(None)):
          gpu_requirements_file = os.path.join(
              "requirements", "common_gpu.txt"
          )
          os.system(
              f"{sys.executable} -m pip install -U -r {gpu_requirements_file}"
          )
  
      # Install dependencies for Inferentia2
      if args.neuronx:
          neuronx_requirements_file = os.path.join(
              "requirements", "neuronx.txt"
          )
          os.system(
              f"{sys.executable} -m pip install -U -r {neuronx_requirements_file}"
          )
  
imports: import argparse
  import os
  import platform
  import sys
  from print_env_info import run_and_parse_first_match
  from ts_scripts.utils import check_python_version
label_desc: Use image node_id 5 for calling the Common obj's underlying member method code with example usage: obj.install_python_packages(cuda_version, requirements_file_path, nightly) without return types