code: def test_rasterize_invalid_geojson(tmpdir, runner):
      """Invalid GeoJSON should fail with error"""
      output = str(tmpdir.join("test.tif"))
      result = runner.invoke(
          main_group, ["rasterize", output], input='{"A": "B"}'
      )
  
      assert result.exit_code == 2
      assert "Invalid GeoJSON" in result.output
  
imports: import json
  import os
  import numpy
  import rasterio
  from rasterio.rio.main import main_group
label_desc: Use image node_id 19 for calling a global function with example usage: test_rasterize_invalid_geojson(tmpdir, runner) without return types