code: def test_build_overviews_average(data):
      inputfile = str(data.join("RGB.byte.tif"))
      with rasterio.open(inputfile, "r+") as src:
          overview_factors = [2, 4]
          src.build_overviews(
              overview_factors, resampling=OverviewResampling.average
          )
          assert src.overviews(1) == [2, 4]
          assert src.overviews(2) == [2, 4]
          assert src.overviews(3) == [2, 4]
  
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 5 for calling a global function with example usage: test_build_overviews_average(data) without return types