code: def test_bogus_band_error():
      with rasterio.open("tests/data/RGB.byte.tif") as src:
          assert src._has_band(4) is False
  
file_path: rasterio/tests/test_err.py
imports: import logging
  import pytest
  import rasterio
  from rasterio._err import CPLE_BaseError
  from rasterio.errors import RasterioIOError
  from rasterio.env import GDALVersion
  from .conftest import gdal_version
label_desc: Use image node_id 3 for calling a global function with example usage: test_bogus_band_error() without return types