code: def test_opener_failure():
      """Use int as an opener :)"""
      with pytest.raises(RasterioIOError) as exc_info:
          rasterio.open("tests/data/RGB.byte.tif", opener=int)
  
      assert (
          exc_info.value.args[0]
          == "Opener failed to open file with arguments ('tests/data/RGB.byte.tif', 'rb'): TypeError(\"'str' object cannot be interpreted as an integer\")"
      )
  
file_path: rasterio/tests/test_pyopener.py
imports: import zipfile
  import io
  import fsspec
  import numpy
  import pytest
  import rasterio
  from rasterio.enums import MaskFlags
  from rasterio.errors import RasterioIOError, OpenerRegistrationError
label_desc: Use image node_id 2 for calling a global function with example usage: test_opener_failure() without return types