code: def test_models_artifact_repo_download_with_real_files(tmp_path):
      # Simulate an artifact repository
      temp_remote_storage = tmp_path / "remote_storage"
      model_dir = temp_remote_storage / "model_dir"
      model_dir.mkdir(parents=True)
      mlmodel_path = model_dir / "MLmodel"
      mlmodel_path.touch()
  
      # Mock get_model_version_download_uri to return the path to the temp_remote_storage location
      with mock.patch.object(
          MlflowClient,
          "get_model_version_download_uri",
          return_value=str(model_dir),
      ):
          # Create ModelsArtifactRepository instance
          models_repo = ModelsArtifactRepository("models:/MyModel/1")
  
          # Use another temporary directory as the download destination
          temp_local_storage = tmp_path / "local_storage"
          temp_local_storage.mkdir()
  
          # Download artifacts
          models_repo.download_artifacts("", str(temp_local_storage))
  
          # Check if the files are downloaded correctly
          downloaded_mlmodel_path = temp_local_storage / "MLmodel"
          assert downloaded_mlmodel_path.exists()
  
          # Check if the metadata file is created
          metadata_file_path = (
              temp_local_storage / "registered_model_meta"
          )
          assert metadata_file_path.exists()
  
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 7 for calling a global function with example usage: test_models_artifact_repo_download_with_real_files(tmp_path) without return types