code: def test_resample_alg_effect_1():
      """default (nearest) and cubic 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)
          nearest = s.read(1, out_shape=out_shape)
          cubic = s.read(
              1, out_shape=out_shape, resampling=Resampling.cubic
          )
          assert np.any(nearest != cubic)
  
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 4 for calling a global function with example usage: test_resample_alg_effect_1() without return types