code: def test_resample_alg_effect_2():
      """Average and bilinear produce different results"""
      with rasterio.open("tests/data/RGB.byte.tif") as s:
          # Existence of overviews can upset our expectations, so we
          # guard against that here.
          assert not any([s.overviews(bidx) for bidx in s.indexes])
          out_shape = (s.height // 2, s.width // 2)
          avg = s.read(
              1, out_shape=out_shape, resampling=Resampling.average
          )
          bilin = s.read(
              1, out_shape=out_shape, resampling=Resampling.bilinear
          )
          assert np.any(avg != bilin)
  
file_path: rasterio/tests/test_read_resample.py
imports: import numpy
  import pytest
  import rasterio
  from rasterio.enums import Resampling
  from rasterio.errors import ResamplingAlgorithmError
  from rasterio.windows import Window
  from .conftest import requires_gdal33
label_desc: Use image node_id 5 for calling a global function with example usage: test_resample_alg_effect_2() without return types