code: def assert_window_almost_equals(a, b, precision=3):
      assert round(a.col_off, precision) == round(b.col_off, precision)
      assert round(a.row_off, precision) == round(b.row_off, precision)
      assert round(a.width, precision) == round(b.width, precision)
      assert round(a.height, precision) == round(b.height, precision)
  
file_path: rasterio/tests/test_io_mixins.py
imports: from affine import Affine
  import pytest
  import rasterio
  from rasterio.windows import Window, WindowMethodsMixin
label_desc: Use image node_id 1 for calling a global function with example usage: assert_window_almost_equals(a, b, precision) without return types