code: def test_ignore_overviews(data, ovr_levels):
      """open dataset with OVERVIEW_LEVEL=NONE, overviews should be ignored"""
      inputfile = str(data.join("RGB.byte.tif"))
  
      # Add overview levels to the fixture.
      with rasterio.open(inputfile, "r+") as src:
          src.build_overviews(ovr_levels, resampling=Resampling.nearest)
  
      with rasterio.open(inputfile, OVERVIEW_LEVEL=-1) as src:
          assert src.overviews(1) == []
          assert src.overviews(2) == []
          assert src.overviews(3) == []
  
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 10 for calling a global function with example usage: test_ignore_overviews(data, ovr_levels) without return types