code: def test_download_artifacts_dst_path_is_file(tmp_path):
      repo = ArtifactRepositoryImpl(_PARENT_DIR)
      dst_path = tmp_path.joinpath("file")
      dst_path.touch()
      with pytest.raises(
          MlflowException,
          match="The destination path for downloaded artifacts must be a directory",
      ):
          repo.download_artifacts(_MODEL_DIR, dst_path)
  
imports: import posixpath
  import time
  from unittest import mock
  import pytest
  from mlflow.entities import FileInfo
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repo import ArtifactRepository
  from mlflow.utils.file_utils import TempDir
label_desc: Use image node_id 4 for calling a global function with example usage: test_download_artifacts_dst_path_is_file(tmp_path) without return types