code: def test_models_artifact_repo_init_with_stage_uri_and_not_using_databricks_registry():
      model_uri = "models:/MyModel/Staging"
      artifact_location = "s3://blah_bucket/"
      model_version_detailed = ModelVersion(
          "MyModel",
          "10",
          "2345671890",
          "234567890",
          "some description",
          "UserID",
          "Production",
          "source",
          "run12345",
      )
      get_latest_versions_patch = mock.patch.object(
          MlflowClient,
          "get_latest_versions",
          return_value=[model_version_detailed],
      )
      get_model_version_download_uri_patch = mock.patch.object(
          MlflowClient,
          "get_model_version_download_uri",
          return_value=artifact_location,
      )
      with (
          get_latest_versions_patch
      ), get_model_version_download_uri_patch, mock.patch(
          "mlflow.store.artifact.artifact_repository_registry.get_artifact_repository",
          return_value=None,
      ) as get_repo_mock:
          ModelsArtifactRepository(model_uri)
          get_repo_mock.assert_called_once_with(artifact_location)
  
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 5 for calling a global function with example usage: test_models_artifact_repo_init_with_stage_uri_and_not_using_databricks_registry() without return types