code: def test_index():
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          left, bottom, right, top = src.bounds
          assert src.index(left, top) == (0, 0)
          assert src.index(right, top) == (0, src.width)
          assert src.index(right, bottom) == (src.height, src.width)
          assert src.index(left, bottom) == (src.height, 0)
  
imports: import numpy
  import pytest
  import rasterio
  from rasterio.errors import WindowError
  from rasterio import windows
label_desc: Use image node_id 2 for calling a global function with example usage: test_index() without return types