code: def _generate_pip_install_cmd_from_list(
      tmp_dir: str,
      requirements: list[str],
      pip_install_options: list[str],
  ) -> list[str]:
      return [
          f"{tmp_dir}/bin/pip",
          "install",
          *pip_install_options,
          *requirements,
      ]
  
file_path: airflow/airflow/utils/python_virtualenv.py
imports: from __future__ import annotations
  import os
  import sys
  import warnings
  from pathlib import Path
  import jinja2
  from jinja2 import select_autoescape
  from airflow.utils.decorators import remove_task_decorator
  from airflow.utils.process_utils import execute_in_subprocess
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_pip_install_cmd_from_list(tmp_dir, requirements, pip_install_options) and returns: list