code: def test_window_transform_method():
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          assert (
              src.window_transform(Window(0, 0, None, None))
              == src.transform
          )
          assert (
              src.window_transform(Window(None, None, None, None))
              == src.transform
          )
          assert (
              src.window_transform(Window(1, 1, None, None)).c
              == src.bounds.left + src.res[0]
          )
          assert (
              src.window_transform(((1, None), (1, None))).f
              == src.bounds.top - src.res[1]
          )
          assert (
              src.window_transform(((-1, None), (-1, None))).c
              == src.bounds.left - src.res[0]
          )
          assert (
              src.window_transform(((-1, None), (-1, None))).f
              == src.bounds.top + src.res[1]
          )
  
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 4 for calling a global function with example usage: test_window_transform_method() without return types