code: def test_collection(runner):
      """GeoJSON collections can be had, optionally"""
      result = runner.invoke(
          main_group,
          ["gcps", "tests/data/white-gemini-iv.vrt", "--collection"],
      )
      assert result.exit_code == 0
      assert result.output.count('"FeatureCollection"') == 1
      assert "-78" in result.output
  
file_path: rasterio/tests/test_rio_gcp.py
imports: import logging
  import sys
  from rasterio.rio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_collection(runner) without return types