code: def test_get_installed_version(tmp_path, monkeypatch):
      import numpy as np
      import pandas as pd
      import sklearn
  
      assert _get_installed_version("mlflow") == mlflow.__version__
      assert _get_installed_version("numpy") == np.__version__
      assert _get_installed_version("pandas") == pd.__version__
      assert (
          _get_installed_version("scikit-learn", module="sklearn")
          == sklearn.__version__
      )
  
      not_found_package = tmp_path.joinpath("not_found.py")
      not_found_package.write_text("__version__ = '1.2.3'")
      monkeypatch.syspath_prepend(str(tmp_path))
      with pytest.raises(
          importlib_metadata.PackageNotFoundError, match=r".+"
      ):
          importlib_metadata.version("not_found")
      assert _get_installed_version("not_found") == "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 11 for calling a global function with example usage: test_get_installed_version(tmp_path, monkeypatch) without return types