code: def test_list_artifacts(local_artifact_repo, local_artifact_root):
      assert len(local_artifact_repo.list_artifacts()) == 0
  
      artifact_rel_path = "artifact"
      artifact_path = os.path.join(
          local_artifact_root, artifact_rel_path
      )
      with open(artifact_path, "w") as f:
          f.write("artifact")
      artifacts_list = local_artifact_repo.list_artifacts()
      assert len(artifacts_list) == 1
      assert artifacts_list[0].path == artifact_rel_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 3 for calling a global function with example usage: test_list_artifacts(local_artifact_repo, local_artifact_root) without return types