code: def test_artifacts_are_logged_to_and_downloaded_from_repo_subdirectory_successfully(
      local_artifact_repo, repo_subdir_path
  ):
      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, artifact_path=repo_subdir_path
          )
  
      downloaded_subdir = local_artifact_repo.download_artifacts(
          repo_subdir_path
      )
      assert os.path.isdir(downloaded_subdir)
      subdir_contents = os.listdir(downloaded_subdir)
      assert len(subdir_contents) == 1
      assert artifact_rel_path in subdir_contents
      with open(
          os.path.join(downloaded_subdir, artifact_rel_path)
      ) as f:
          assert f.read() == artifact_text
  
      downloaded_file = local_artifact_repo.download_artifacts(
          posixpath.join(repo_subdir_path, artifact_rel_path)
      )
      with open(downloaded_file) as f:
          assert f.read() == artifact_text
  
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 8 for calling a global function with example usage: test_artifacts_are_logged_to_and_downloaded_from_repo_subdirectory_successfully(local_artifact_repo, repo_subdir_path) without return types