code: def test_list_artifacts_nested(hdfs_system_mock):
      repo = HdfsArtifactRepository("hdfs:://host/some/path")
  
      expected = [
          FileInfo("model/conda.yaml", False, 33),
          FileInfo("model/model.pkl", False, 33),
          FileInfo("model/MLmodel", False, 33),
      ]
  
      hdfs_system_mock.return_value.ls.return_value = [
          {
              "kind": "file",
              "name": "hdfs://host/some/path/model/conda.yaml",
              "size": 33,
          },
          {
              "kind": "file",
              "name": "hdfs://host/some/path/model/model.pkl",
              "size": 33,
          },
          {
              "kind": "file",
              "name": "hdfs://host/some/path/model/MLmodel",
              "size": 33,
          },
      ]
  
      actual = repo.list_artifacts("model")
  
      assert actual == expected
  
imports: import os
  import sys
  from io import BufferedReader
  from tempfile import NamedTemporaryFile
  from unittest import mock
  from unittest.mock import ANY, call, mock_open
  import pytest
  from pyarrow import HadoopFileSystem
  from mlflow.entities import FileInfo
  from mlflow.store.artifact.hdfs_artifact_repo import HdfsArtifactRepository, _download_hdfs_file, _parse_extra_conf, _relative_path_remote, _resolve_base_path
  from mlflow.utils.file_utils import TempDir
label_desc: Use image node_id 7 for calling a global function with example usage: test_list_artifacts_nested(hdfs_system_mock) without return types