code: def test_download_artifacts_returns_absolute_paths(
      local_artifact_repo,
  ):
      artifact_rel_path = "test.txt"
      artifact_text = "hello world!"
      with TempDir(chdr=True) as local_dir:
          artifact_src_path = local_dir.path(artifact_rel_path)
          with open(artifact_src_path, "w") as f:
              f.write(artifact_text)
          local_artifact_repo.log_artifact(artifact_src_path)
  
          for dst_dir in ["dst1", local_dir.path("dst2"), None]:
              if dst_dir is not None:
                  os.makedirs(dst_dir)
              dst_path = local_artifact_repo.download_artifacts(
                  artifact_path=artifact_rel_path, dst_path=dst_dir
              )
              if dst_dir is not None:
                  # If dst_dir isn't none, assert we're actually downloading to dst_dir.
                  assert dst_path.startswith(os.path.abspath(dst_dir))
              assert dst_path == os.path.abspath(dst_path)
  
file_path: mlflow/tests/store/artifact/test_local_artifact_repo.py
imports: import os
  import posixpath
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.local_artifact_repo import LocalArtifactRepository
  from mlflow.utils.file_utils import TempDir
label_desc: Use image node_id 7 for calling a global function with example usage: test_download_artifacts_returns_absolute_paths(local_artifact_repo) without return types