code: def test_uc_models_artifact_repo_init_with_db_profile_inferred_from_context():
      uri_without_profile = "models:/MyModel/12"
      profile_in_registry_uri = "some_profile"
      registry_uri = f"databricks-uc://{profile_in_registry_uri}"
      models_repo = UnityCatalogModelsArtifactRepository(
          artifact_uri=uri_without_profile, registry_uri=registry_uri
      )
      assert models_repo.artifact_uri == uri_without_profile
      assert models_repo.client._registry_uri == registry_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 2 for calling a global function with example usage: test_uc_models_artifact_repo_init_with_db_profile_inferred_from_context() without return types