code: def test_gdal_version(runner):
      result = runner.invoke(main_group, ["--gdal-version"])
      assert result.exit_code == 0
      assert result.output.strip().startswith(("2", "3"))
  
imports: import logging
  import sys
  from packaging.version import parse
  from rasterio.rio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_gdal_version(runner) without return types