code: def test_window_intersection():
      assert windows.intersection(
          windows.Window.from_slices((0, 6), (3, 6)),
          windows.Window.from_slices((2, 4), (1, 5)),
      ) == windows.Window.from_slices((2, 4), (3, 5))
  
      assert windows.intersection(
          windows.Window.from_slices((0, 6), (3, 6)),
          windows.Window.from_slices((2, 4), (1, 5)),
          windows.Window.from_slices((3, 6), (0, 6)),
      ) == windows.Window.from_slices((3, 4), (3, 5))
  
imports: import numpy
  import pytest
  import rasterio
  from rasterio.errors import WindowError
  from rasterio import windows
label_desc: Use image node_id 17 for calling a global function with example usage: test_window_intersection() without return types