code: def test_parse_pip_requirements_with_relative_requirements_files(
      tmp_path, monkeypatch
  ):
      monkeypatch.chdir(tmp_path)
      f1 = tmp_path.joinpath("requirements1.txt")
      f1.write_text("b")
      assert _parse_pip_requirements(f1.name) == (["b"], [])
      assert _parse_pip_requirements(["a", f"-r {f1.name}"]) == (
          ["a", "b"],
          [],
      )
  
      f2 = tmp_path.joinpath("requirements2.txt")
      f3 = tmp_path.joinpath("requirements3.txt")
      f2.write_text(f"b\n-r {f3.name}")
      f3.write_text("c")
      assert _parse_pip_requirements(f2.name) == (["b", "c"], [])
      assert _parse_pip_requirements(["a", f"-r {f2.name}"]) == (
          ["a", "b", "c"],
          [],
      )
  
imports: import os
  import pytest
  import yaml
  from mlflow.exceptions import MlflowException
  from mlflow.utils.environment import _contains_mlflow_requirement, _deduplicate_requirements, _get_pip_deps, _get_pip_requirement_specifier, _is_mlflow_requirement, _is_pip_deps, _mlflow_conda_env, _overwrite_pip_deps, _parse_pip_requirements, _process_conda_env, _process_pip_requirements, _validate_env_arguments
  from tests.helper_functions import _mlflow_major_version_string
label_desc: Use image node_id 9 for calling a global function with example usage: test_parse_pip_requirements_with_relative_requirements_files(tmp_path, monkeypatch) without return types