code: def test_default_experiment_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.default_experiment.registry)
  
      from mlflow_test_plugin.default_experiment_provider import (
          PluginDefaultExperimentProvider,
      )
  
      assert (
          PluginDefaultExperimentProvider
          in _currently_registered_default_experiment_provider_classes()
      )
  
      # The test plugin's context provider always returns False from in_context
      # to avoid polluting get_experiment_id in developers' environments.
      # The following mock overrides this to perform the integration test.
      with mock.patch.object(
          PluginDefaultExperimentProvider,
          "in_context",
          return_value=True,
      ):
          assert get_experiment_id() == "experiment_id_1"
  
file_path: mlflow/tests/tracking/default_experiment/test_registry.py
imports: from importlib import reload
  from unittest import mock
  import pytest
  import mlflow.tracking.default_experiment.registry
  from mlflow.tracking.default_experiment.databricks_notebook_experiment_provider import DatabricksNotebookExperimentProvider
  from mlflow.tracking.default_experiment.registry import DefaultExperimentProviderRegistry, get_experiment_id
label_desc: Use image node_id 7 for calling a global function with example usage: test_default_experiment_provider_registry_with_installed_plugin(tmp_path, monkeypatch) without return types