code: def test_issue1333(data):
      """Fail if asked to create more than one 1x1 overview"""
      inputfile = str(data.join("RGB.byte.tif"))
      with pytest.raises(OverviewCreationError):
          with rasterio.open(inputfile, "r+") as src:
              overview_factors = [1024, 2048]
              src.build_overviews(
                  overview_factors,
                  resampling=OverviewResampling.average,
              )
  
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 8 for calling a global function with example usage: test_issue1333(data) without return types