code: def test_windows_mixin():
      class MockDataset(MockDatasetBase, WindowMethodsMixin):
          pass
  
      src = MockDataset()
  
      assert_window_almost_equals(
          src.window(*src.bounds), Window(0, 0, src.width, src.height)
      )
  
      assert (
          src.window_bounds(Window(0, 0, src.width, src.height))
          == src.bounds
      )
  
      assert (
          src.window_transform(Window(0, 0, src.width, src.height))
          == src.transform
      )
  
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 2 for calling a global function with example usage: test_windows_mixin() without return types