code: def test_info_layer(path_gpx):
      for layer in ("routes", "1"):
          runner = CliRunner()
          result = runner.invoke(
              main_group, ["info", path_gpx, "--layer", layer]
          )
          assert result.exit_code == 0
          lines = _filter_info_warning(result.output.splitlines())
          assert (
              len(lines) == 1
          ), "1st line is warning & 2nd is JSON - no more."
          assert json.loads(lines[0])["name"] == "routes"
  
file_path: Fiona/tests/test_fio_info.py
imports: import json
  from pkg_resources import iter_entry_points
  import re
  import sys
  from click.testing import CliRunner
  import pytest
  from fiona.fio.main import main_group
label_desc: Use image node_id 7 for calling a global function with example usage: test_info_layer(path_gpx) without return types