code: def test_hit_ovr(red_green):
      """Zoomed out read hits the overviews"""
      # GDAL doesn't log overview hits for local files , so we copy the
      # overviews of green.tif over the red overviews and expect to find
      # green pixels below.
      green_ovr = red_green.join("green.tif.ovr")
      shutil.move(green_ovr, red_green.join("red.tif.ovr"))
      assert not green_ovr.exists()
      with rasterio.open(str(red_green.join("red.tif.ovr"))) as ovr:
          data = ovr.read()
          assert (data[1] == 204).all()
  
      with rasterio.Env():
          with rasterio.open(str(red_green.join("red.tif"))) as src:
              data = src.read(out_shape=(3, 32, 32))
              image = numpy.moveaxis(data, 0, -1)
              assert image[0, 0, 0] == 17
              assert image[0, 0, 1] == 204
  
imports: from affine import Affine
  import shutil
  from hypothesis import example, given
  import hypothesis.strategies
  import numpy
  from numpy.testing import assert_almost_equal
  import pytest
  import rasterio
  from rasterio.io import MemoryFile
  from rasterio.windows import Window
label_desc: Use image node_id 5 for calling a global function with example usage: test_hit_ovr(red_green) without return types