code: def test_models_artifact_repo_init_with_uc_registry_db_profile_inferred_from_context():
      model_uri = "models:/MyModel/12"
      uc_registry_uri = "databricks-uc://getRegistryUriDefault"
      with mock.patch(
          UC_MODELS_ARTIFACT_REPOSITORY, autospec=True
      ) as mock_repo, mock.patch(
          "mlflow.get_registry_uri", return_value=uc_registry_uri
      ):
          mock_repo.return_value.model_name = "MyModel"
          mock_repo.return_value.model_version = "12"
          models_repo = ModelsArtifactRepository(model_uri)
          assert models_repo.artifact_uri == model_uri
          assert isinstance(
              models_repo.repo, UnityCatalogModelsArtifactRepository
          )
          mock_repo.assert_called_once_with(
              model_uri, registry_uri=uc_registry_uri
          )
  
file_path: mlflow/tests/store/artifact/test_models_artifact_repo.py
imports: from unittest import mock
  import pytest
  from mlflow import MlflowClient
  from mlflow.entities.model_registry import ModelVersion
  from mlflow.store.artifact.databricks_models_artifact_repo import DatabricksModelsArtifactRepository
  from mlflow.store.artifact.models_artifact_repo import ModelsArtifactRepository
  from mlflow.store.artifact.unity_catalog_models_artifact_repo import UnityCatalogModelsArtifactRepository
  from mlflow.utils.os import is_windows
  from tests.store.artifact.constants import UC_MODELS_ARTIFACT_REPOSITORY, WORKSPACE_MODELS_ARTIFACT_REPOSITORY
label_desc: Use image node_id 3 for calling a global function with example usage: test_models_artifact_repo_init_with_uc_registry_db_profile_inferred_from_context() without return types