code: def test_windows(runner, path_rgb_byte_tif):
      result = runner.invoke(main_group, ["blocks", path_rgb_byte_tif])
      assert result.exit_code == 0
  
      fc = json.loads(result.output)
  
      with rasterio.open(path_rgb_byte_tif) as src:
          block_windows = tuple(src.block_windows())
  
          # Check the coordinates of the first output feature
          actual_first = fc["features"][0]
          expected_first = block_windows[0]
          bounds = src.window_bounds(expected_first[1])
          xmin, ymin, xmax, ymax = transform_bounds(
              src.crs, "EPSG:4326", *bounds
          )
          coordinates = [
              [xmin, ymin],
              [xmin, ymax],
              [xmax, ymax],
              [xmax, ymin],
          ]
          assert np.array_equal(
              actual_first["geometry"]["coordinates"][0], coordinates
          )
  
          assert len(fc["features"]) == len(block_windows)
          assert check_features_block_windows(
              fc["features"], src, bidx=1
          )
  
file_path: rasterio/tests/test_rio_blocks.py
imports: from itertools import zip_longest
  import json
  import re
  import numpy
  import rasterio
  from rasterio.warp import transform_bounds
  from rasterio.rio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_windows(runner, path_rgb_byte_tif) without return types