code: def test_sieve_read(tmpdir, runner):
      outfile = str(tmpdir.join("out.tif"))
      result = runner.invoke(
          main_group,
          ["calc"]
          + [
              "(sieve (read 1 1 'uint8') 42)",
              "tests/data/shade.tif",
              outfile,
          ],
          catch_exceptions=False,
      )
      assert result.exit_code == 0
      with rasterio.open(outfile) as src:
          assert src.count == 1
          assert src.meta["dtype"] == "uint8"
  
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 11 for calling a global function with example usage: test_sieve_read(tmpdir, runner) without return types