code: def test_sample_err(runner):
      result = runner.invoke(
          main_group, ["sample", "bogus.tif"], "[220650.0, 2719200.0]"
      )
      assert result.exit_code == 1
  
file_path: rasterio/tests/test_rio_sample.py
imports: import logging
  import sys
  from rasterio.rio.main import main_group
label_desc: Use image node_id 1 for calling a global function with example usage: test_sample_err(runner) without return types