code: def test_uc_models_artifact_repo_init_not_using_databricks_registry_raises():
      non_databricks_uri = "non_databricks_uri"
      model_uri = "models:/MyModel/12"
      with pytest.raises(
          MlflowException,
          match="Attempted to instantiate an artifact repo to access models in the Unity "
          "Catalog with non-Unity Catalog registry URI",
      ):
          UnityCatalogModelsArtifactRepository(
              model_uri, non_databricks_uri
          )
  
imports: import json
  from unittest import mock
  from unittest.mock import ANY
  import pytest
  from google.cloud.storage import Client
  from requests import Response
  from mlflow import MlflowClient
  from mlflow.entities.file_info import FileInfo
  from mlflow.exceptions import MlflowException
  from mlflow.store._unity_catalog.registry.utils import _ACTIVE_CATALOG_QUERY, _ACTIVE_SCHEMA_QUERY
  from mlflow.store.artifact.azure_data_lake_artifact_repo import AzureDataLakeArtifactRepository
  from mlflow.store.artifact.gcs_artifact_repo import GCSArtifactRepository
  from mlflow.store.artifact.optimized_s3_artifact_repo import OptimizedS3ArtifactRepository
  from mlflow.store.artifact.unity_catalog_models_artifact_repo import UnityCatalogModelsArtifactRepository
  from mlflow.utils.uri import _DATABRICKS_UNITY_CATALOG_SCHEME
label_desc: Use image node_id 3 for calling a global function with example usage: test_uc_models_artifact_repo_init_not_using_databricks_registry_raises() without return types