code: def test_handle_plugin_registration_failure_via_entrypoints(
      exception,
  ):
      mock_entrypoint = mock.Mock(load=mock.Mock(side_effect=exception))
      mock_entrypoint.name = "mock-scheme"
  
      with mock.patch(
          "entrypoints.get_group_all", return_value=[mock_entrypoint]
      ) as mock_get_group_all:
          tracking_store = TrackingStoreRegistry()
  
          # Check that the raised warning contains the message from the original exception
          with pytest.warns(UserWarning, match="test exception"):
              tracking_store.register_entrypoints()
  
      mock_entrypoint.load.assert_called_once()
      mock_get_group_all.assert_called_once_with(
          "mlflow.tracking_store"
      )
  
imports: import io
  import itertools
  import os
  import pickle
  from importlib import reload
  from pathlib import Path
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.environment_variables import MLFLOW_TRACKING_INSECURE_TLS, MLFLOW_TRACKING_PASSWORD, MLFLOW_TRACKING_TOKEN, MLFLOW_TRACKING_URI, MLFLOW_TRACKING_USERNAME
  from mlflow.exceptions import MlflowException
  from mlflow.store.db.db_types import DATABASE_ENGINES
  from mlflow.store.tracking.file_store import FileStore
  from mlflow.store.tracking.rest_store import RestStore
  from mlflow.store.tracking.sqlalchemy_store import SqlAlchemyStore
  from mlflow.tracking._tracking_service.registry import TrackingStoreRegistry
  from mlflow.tracking._tracking_service.utils import _get_store, _resolve_tracking_uri, get_tracking_uri, set_tracking_uri
  from mlflow.tracking.registry import UnsupportedModelRegistryStoreURIException
  from mlflow.utils.file_utils import path_to_local_file_uri
  from mlflow.utils.os import is_windows
label_desc: Use image node_id 18 for calling a global function with example usage: test_handle_plugin_registration_failure_via_entrypoints(exception) without return types