code: def test_chunk_output(width, height, count, itemsize, mem_limit):
      work_windows = _chunk_output(
          width, height, count, itemsize, mem_limit=mem_limit
      )
      num_windows_rows = max([i for ((i, j), w) in work_windows]) + 1
      num_windows_cols = max([j for ((i, j), w) in work_windows]) + 1
      assert (
          sum((w.width for ij, w in work_windows))
          == width * num_windows_rows
      )
      assert (
          sum((w.height for ij, w in work_windows))
          == height * num_windows_cols
      )
  
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 13 for calling a global function with example usage: test_chunk_output(width, height, count, itemsize, mem_limit) without return types