code: def _process_pip_requirements(
      default_pip_requirements,
      pip_requirements=None,
      extra_pip_requirements=None,
  ):
      """
      Processes `pip_requirements` and `extra_pip_requirements` passed to `mlflow.*.save_model` or
      `mlflow.*.log_model`, and returns a tuple of (conda_env, pip_requirements, pip_constraints).
      """
      constraints = []
      if pip_requirements is not None:
          pip_reqs, constraints = _parse_pip_requirements(
              pip_requirements
          )
      elif extra_pip_requirements is not None:
          extra_pip_requirements, constraints = _parse_pip_requirements(
              extra_pip_requirements
          )
          pip_reqs = default_pip_requirements + extra_pip_requirements
      else:
          pip_reqs = default_pip_requirements
  
      if not _contains_mlflow_requirement(pip_reqs):
          pip_reqs.insert(0, _generate_mlflow_version_pinning())
  
      sanitized_pip_reqs = _deduplicate_requirements(pip_reqs)
  
      if constraints:
          sanitized_pip_reqs.append(f"-c {_CONSTRAINTS_FILE_NAME}")
  
      # Set `install_mlflow` to False because `pip_reqs` already contains `mlflow`
      conda_env = _mlflow_conda_env(
          additional_pip_deps=sanitized_pip_reqs, install_mlflow=False
      )
      return conda_env, sanitized_pip_reqs, constraints
  
imports: import logging
  import os
  import re
  import subprocess
  import sys
  import tempfile
  import yaml
  from packaging.requirements import InvalidRequirement, Requirement
  from packaging.version import Version
  from mlflow.environment_variables import _MLFLOW_TESTING
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
  from mlflow.utils import PYTHON_VERSION, insecure_hash
  from mlflow.utils.process import _exec_cmd
  from mlflow.utils.requirements_utils import _infer_requirements, _parse_requirements
  from mlflow.version import VERSION
label_desc: Use image node_id 15 for calling a global function with example usage: _process_pip_requirements(default_pip_requirements, pip_requirements, extra_pip_requirements) and returns: conda_env,  sanitized_pip_reqs,  constraints