code: def test_list_info_files(tmp_path: pathlib.Path):
      tmp_path.joinpath("test.tfrecord").touch()
      tmp_path.joinpath("test.riegeli").touch()
      tmp_path.joinpath("info.json").touch()
  
      # Have a info file in the sub-directory. Shouldn't be listed.
      tmp_path.joinpath("diff").mkdir()
      tmp_path.joinpath("diff/info.json").touch()
      info_files = py_utils.list_info_files(tmp_path)
  
      assert info_files == ["info.json"]
  
imports: import collections
  import pathlib
  from etils import epath
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import py_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_list_info_files(tmp_path) without return types