code: def test_plugin_registration():
      artifact_repository_registry = ArtifactRepositoryRegistry()
  
      mock_plugin = mock.Mock()
      artifact_repository_registry.register("mock-scheme", mock_plugin)
      assert "mock-scheme" in artifact_repository_registry._registry
      repository_instance = (
          artifact_repository_registry.get_artifact_repository(
              artifact_uri="mock-scheme://fake-host/fake-path"
          )
      )
      assert repository_instance == mock_plugin.return_value
  
      mock_plugin.assert_called_once_with(
          "mock-scheme://fake-host/fake-path"
      )
  
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 3 for calling a global function with example usage: test_plugin_registration() without return types