code: def test_logging_directory_of_artifacts_produces_expected_repo_contents(
      local_artifact_repo,
  ):
      with TempDir() as local_dir:
          os.mkdir(local_dir.path("subdir"))
          os.mkdir(local_dir.path("subdir", "nested"))
          with open(local_dir.path("subdir", "a.txt"), "w") as f:
              f.write("A")
          with open(local_dir.path("subdir", "b.txt"), "w") as f:
              f.write("B")
          with open(
              local_dir.path("subdir", "nested", "c.txt"), "w"
          ) as f:
              f.write("C")
          local_artifact_repo.log_artifacts(local_dir.path("subdir"))
          with open(
              local_artifact_repo.download_artifacts("a.txt")
          ) as f:
              assert f.read() == "A"
          with open(
              local_artifact_repo.download_artifacts("b.txt")
          ) as f:
              assert f.read() == "B"
          with open(
              local_artifact_repo.download_artifacts("nested/c.txt")
          ) as f:
              assert f.read() == "C"
  
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 10 for calling a global function with example usage: test_logging_directory_of_artifacts_produces_expected_repo_contents(local_artifact_repo) without return types