code: def test_list_tb_files(tmp_path: pathlib.Path) -> None:
      env = get_dummy_env()
      base_path = tensorboard.get_base_path({"base_path": BASE_PATH})
      sync_path = tensorboard.get_sync_path(
          env.det_cluster_id, env.det_experiment_id, env.det_trial_id
      )
  
      manager = SharedFSTensorboardManager(
          str(tmp_path), base_path, sync_path
      )
      test_files = [
          "no_show.txt",
          "79375caf89e9.kernel_stats.pb",
          "79375caf89e9.memory_profile.json.gz",
          "events.out.tfevents.example",
      ]
  
      test_filepaths = [
          BASE_PATH.joinpath("tensorboard--0", test_file)
          for test_file in test_files
      ]
      tb_files = manager.list_tb_files(0, lambda _: True)
  
      assert set(test_filepaths) == set(tb_files)
  
file_path: determined/harness/tests/tensorboard/test_util.py
imports: import pathlib
  import pytest
  import determined
  from determined import tensorboard
  from determined.tensorboard import SharedFSTensorboardManager
label_desc: Use image node_id 2 for calling a global function with example usage: test_list_tb_files(tmp_path) without return types