code: def test_ls(tmp_fs_path, detail):
      for i in range(2):
          with fsspec.open(osp.join(tmp_fs_path, str(i)), "w") as f:
              f.write("here")
      res = fs.ls(tmp_fs_path, detail)
      assert len(res) == 2
      expected_protocol = fs.get_fs(tmp_fs_path).protocol
      for output in res:
          if detail:
              output = output["name"]
          assert fs.get_fs(output).protocol == expected_protocol
  
file_path: pytorch_geometric/test/io/test_fs.py
imports: import zipfile
  from os import path
  import fsspec
  import pytest
  import torch
  import torch_geometric.typing
  from torch_geometric.data import extract_zip
  from torch_geometric.io import fs
  from torch_geometric.testing import noWindows
label_desc: Use image node_id 6 for calling a global function with example usage: test_ls(tmp_fs_path, detail) without return types