code: def test_fio_ls_multi_layer(path_coutwildrnp_shp, tmpdir):
      outdir = str(tmpdir.mkdir("test_fio_ls_multi_layer"))
  
      # Copy test shapefile into new directory
      # Shapefile driver treats a directory of shapefiles as a single
      # multi-layer datasource
      layer_names = ["l1", "l2"]
      for layer in layer_names:
          with fiona.open(path_coutwildrnp_shp) as src, fiona.open(
              outdir, "w", layer=layer, **src.meta
          ) as dst:
              for feat in src:
                  dst.write(feat)
  
      # Run CLI test
      result = CliRunner().invoke(main_group, ["ls", outdir])
      assert result.exit_code == 0
      json_result = json.loads(result.output)
      assert sorted(json_result) == sorted(layer_names)
  
file_path: Fiona/tests/test_fio_ls.py
imports: import json
  import sys
  import os
  from click.testing import CliRunner
  import pytest
  import fiona
  from fiona.fio.main import main_group
label_desc: Use image node_id 3 for calling a global function with example usage: test_fio_ls_multi_layer(path_coutwildrnp_shp, tmpdir) without return types