code: def test_decimated_no_use_overview(red_green):
      """Force ignore existing overviews when performing decimated read"""
      # Corrupt overview of red file by replacing red.tif.ovr with
      # green.tif.ovr.  We have a GDAL overview reading bug if green
      # pixels appear in a decimated read.
      green_ovr = red_green.join("green.tif.ovr")
      green_ovr.move(red_green.join("red.tif.ovr"))
      assert not green_ovr.exists()
  
      # Read the corrupted red overview.
      with rasterio.open(str(red_green.join("red.tif.ovr"))) as ovr:
          ovr_data = ovr.read(2)
          ovr_shape = ovr_data.shape
          assert (ovr_data == 204).all()  # Green pixels in band 2
  
      # Perform decimated read and ensure no use of file overview
      # (different from corrupted).
      with rasterio.open(
          str(red_green.join("red.tif")), OVERVIEW_LEVEL="NONE"
      ) as src:
          decimated_data = src.read(2, out_shape=ovr_shape)
          assert not np.array_equal(ovr_data, decimated_data)
  
file_path: rasterio/tests/test_overviews.py
imports: import numpy
  import pytest
  from .conftest import requires_gdal33
  import rasterio
  from rasterio.enums import _OverviewResampling
  from rasterio.enums import Resampling
  from rasterio.errors import OverviewCreationError
label_desc: Use image node_id 11 for calling a global function with example usage: test_decimated_no_use_overview(red_green) without return types