code: def test_err(tmpdir, runner):
      outfile = str(tmpdir.join("out.tif"))
      result = runner.invoke(
          main_group,
          ["calc"]
          + ["($ 0.1 (read 1))", "tests/data/shade.tif", outfile],
      )
      assert result.exit_code == 1
  
file_path: rasterio/tests/test_rio_calc.py
imports: import pytest
  import rasterio
  from rasterio.rio.calc import _chunk_output
  from rasterio.rio.main import main_group
label_desc: Use image node_id 1 for calling a global function with example usage: test_err(tmpdir, runner) without return types