code: def test_fio_load_layer(tmpdir, runner):
      outdir = str(tmpdir.mkdir("tests").mkdir("test_fio_load_layer"))
      try:
          feature = {
              "type": "Feature",
              "properties": {"key": "value"},
              "geometry": {"type": "Point", "coordinates": (5.0, 39.0)},
          }
          sequence = os.linesep.join(
              map(
                  partial(json.dumps, cls=ObjectEncoder),
                  [feature, feature],
              )
          )
          result = runner.invoke(
              main_group,
              [
                  "load",
                  outdir,
                  "--driver",
                  "ESRI Shapefile",
                  "--src-crs",
                  "EPSG:4236",
                  "--layer",
                  "test_layer",
              ],
              input=sequence,
          )
          assert result.exit_code == 0
  
          with fiona.open(outdir) as src:
              assert len(src) == 2
              assert src.name == "test_layer"
              assert src.schema["geometry"] == "Point"
  
      finally:
          shutil.rmtree(outdir)
  
file_path: Fiona/tests/test_fio_load.py
imports: from functools import partial
  import json
  import os
  import shutil
  import pytest
  import fiona
  from fiona.fio.main import main_group
  from fiona.model import ObjectEncoder
label_desc: Use image node_id 9 for calling a global function with example usage: test_fio_load_layer(tmpdir, runner) without return types