code: def test_window_no_exception():
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          left, bottom, right, top = src.bounds
          left -= 1000.0
          assert_window_almost_equals(
              src.window(left, bottom, right, top),
              windows.Window(
                  -1000 / src.res[0],
                  0,
                  src.width + 1000 / src.res[0],
                  src.height,
              ),
          )
  
imports: import numpy
  import pytest
  import rasterio
  from rasterio.errors import WindowError
  from rasterio import windows
label_desc: Use image node_id 4 for calling a global function with example usage: test_window_no_exception() without return types