code: def test_run_context_provider_registry_with_installed_plugin(
      tmp_path, monkeypatch
  ):
      """This test requires the package in tests/resources/mlflow-test-plugin to be installed"""
      monkeypatch.chdir(tmp_path)
  
      reload(mlflow.tracking.context.registry)
  
      from mlflow_test_plugin.run_context_provider import (
          PluginRunContextProvider,
      )
  
      assert (
          PluginRunContextProvider
          in _currently_registered_run_context_provider_classes()
      )
  
      # The test plugin's context provider always returns False from in_context
      # to avoid polluting tags in developers' environments. The following mock overrides this to
      # perform the integration test.
      with mock.patch.object(
          PluginRunContextProvider, "in_context", return_value=True
      ):
          assert resolve_tags()["test"] == "tag"
  
file_path: mlflow/tests/tracking/context/test_registry.py
imports: from importlib import reload
  from unittest import mock
  import pytest
  import mlflow.tracking.context.registry
  from mlflow.tracking.context.databricks_job_context import DatabricksJobRunContext
  from mlflow.tracking.context.databricks_notebook_context import DatabricksNotebookRunContext
  from mlflow.tracking.context.databricks_repo_context import DatabricksRepoRunContext
  from mlflow.tracking.context.default_context import DefaultRunContext
  from mlflow.tracking.context.git_context import GitRunContext
  from mlflow.tracking.context.registry import RunContextProviderRegistry, resolve_tags
label_desc: Use image node_id 7 for calling a global function with example usage: test_run_context_provider_registry_with_installed_plugin(tmp_path, monkeypatch) without return types