code: def test_test_unsupported_algo(data):
      inputfile = str(data.join("RGB.byte.tif"))
      with pytest.raises(ValueError):
          with rasterio.open(inputfile, "r+") as src:
              overview_factors = [2, 4]
              src.build_overviews(
                  overview_factors, resampling=Resampling.q1
              )
  
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 7 for calling a global function with example usage: test_test_unsupported_algo(data) without return types