code: def test_request_auth_provider_registry_register_entrypoints():
      provider_class = mock.Mock()
      mock_entrypoint = mock.Mock()
      mock_entrypoint.load.return_value = provider_class
  
      with mock.patch(
          "entrypoints.get_group_all", return_value=[mock_entrypoint]
      ) as mock_get_group_all:
          registry = RequestAuthProviderRegistry()
          registry.register_entrypoints()
  
      assert set(registry) == {provider_class.return_value}
      mock_entrypoint.load.assert_called_once_with()
      mock_get_group_all.assert_called_once_with(
          "mlflow.request_auth_provider"
      )
  
file_path: mlflow/tests/tracking/request_auth/test_registry.py
imports: from importlib import reload
  from unittest import mock
  import pytest
  import mlflow.tracking.request_auth.registry
  from mlflow.tracking.request_auth.registry import RequestAuthProviderRegistry, fetch_auth
label_desc: Use image node_id 2 for calling a global function with example usage: test_request_auth_provider_registry_register_entrypoints() without return types