code: def test_read_downsample_alpha():
      with rasterio.Env(GTIFF_IMPLICIT_JPEG_OVR=False):
          with rasterio.open("tests/data/alpha.tif") as src:
              out = np.zeros((100, 100), dtype=rasterio.ubyte)
              assert src.width == 1223
              assert src.height == 1223
              assert src.count == 4
              assert (
                  src.read(1, out=out, masked=False).shape == out.shape
              )
              # attempt decimated read of alpha band
              src.read(4, out=out, masked=False)
  
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 3 for calling a global function with example usage: test_read_downsample_alpha() without return types