code: def assert_window_almost_equals(a, b, precision=3):
      for attr in ("row_off", "col_off", "width", "height"):
          assert round(getattr(a, attr), precision) == round(
              getattr(b, attr), precision
          )
  
imports: import numpy
  import pytest
  import rasterio
  from rasterio.errors import WindowError
  from rasterio import windows
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