code: def test_get_pinned_requirement_local_version_label(
      tmp_path, monkeypatch
  ):
      package = tmp_path.joinpath("my_package.py")
      lvl = "abc.def.ghi"  # Local version label
      package.write_text(f"__version__ = '1.2.3+{lvl}'")
      monkeypatch.syspath_prepend(str(tmp_path))
  
      with mock.patch(
          "mlflow.utils.requirements_utils._logger.warning"
      ) as mock_warning:
          req = _get_pinned_requirement("my_package")
          mock_warning.assert_called_once()
          (first_pos_arg,) = mock_warning.call_args[0]
          assert first_pos_arg.startswith(
              f"Found my_package version (1.2.3+{lvl}) contains a local version label (+{lvl})."
          )
      assert req == "my_package==1.2.3"
  
imports: import importlib
  import os
  import sys
  from unittest import mock
  import importlib_metadata
  import pytest
  import mlflow
  import mlflow.utils.requirements_utils
  from mlflow.utils.environment import infer_pip_requirements
  from mlflow.utils.requirements_utils import _capture_imported_modules, _get_installed_version, _get_pinned_requirement, _infer_requirements, _is_comment, _is_empty, _is_requirements_file, _join_continued_lines, _normalize_package_name, _parse_requirements, _prune_packages, _PyPIPackageIndex, _strip_inline_comment, _strip_local_version_label
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_pinned_requirement_local_version_label(tmp_path, monkeypatch) without return types