code: def test_plugin_registration_via_entrypoints():
      mock_plugin_function = mock.Mock()
      mock_entrypoint = mock.Mock(
          load=mock.Mock(return_value=mock_plugin_function)
      )
      mock_entrypoint.name = "mock-scheme"
  
      with mock.patch(
          "entrypoints.get_group_all", return_value=[mock_entrypoint]
      ) as mock_get_group_all:
          artifact_repository_registry = ArtifactRepositoryRegistry()
          artifact_repository_registry.register_entrypoints()
  
      assert (
          artifact_repository_registry.get_artifact_repository(
              "mock-scheme://fake-host/fake-path"
          )
          == mock_plugin_function.return_value
      )
  
      mock_plugin_function.assert_called_once_with(
          "mock-scheme://fake-host/fake-path"
      )
      mock_get_group_all.assert_called_once_with(
          "mlflow.artifact_repository"
      )
  
file_path: mlflow/tests/store/artifact/test_artifact_repository_registry.py
imports: from importlib import reload
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.store.artifact import artifact_repository_registry
  from mlflow.store.artifact.artifact_repository_registry import ArtifactRepositoryRegistry
label_desc: Use image node_id 5 for calling a global function with example usage: test_plugin_registration_via_entrypoints() without return types