code: def test_init_with_version_uri_and_profile_is_inferred():
      # First mock for `is_using_databricks_registry` to pass
      # Second mock to set `databricks_profile_uri` during instantiation
      with mock.patch(
          "mlflow.store.artifact.utils.models.mlflow.get_registry_uri",
          return_value=MOCK_PROFILE,
      ), mock.patch(
          "mlflow.tracking.get_registry_uri", return_value=MOCK_PROFILE
      ):
          repo = DatabricksModelsArtifactRepository(
              MOCK_MODEL_ROOT_URI_WITHOUT_PROFILE
          )
          assert (
              repo.artifact_uri == MOCK_MODEL_ROOT_URI_WITHOUT_PROFILE
          )
          assert repo.model_name == MOCK_MODEL_NAME
          assert repo.model_version == MOCK_MODEL_VERSION
          assert repo.databricks_profile_uri == MOCK_PROFILE
  
imports: import json
  from unittest import mock
  from unittest.mock import ANY
  import pytest
  from mlflow import MlflowClient
  from mlflow.entities import FileInfo
  from mlflow.entities.model_registry import ModelVersion
  from mlflow.environment_variables import MLFLOW_MULTIPART_DOWNLOAD_CHUNK_SIZE
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.databricks_models_artifact_repo import DatabricksModelsArtifactRepository
  from mlflow.utils.file_utils import _Chunk
label_desc: Use image node_id 5 for calling a global function with example usage: test_init_with_version_uri_and_profile_is_inferred() without return types