code: def test_delete_invalid_driver(path_rgb_byte_tif, tmpdir):
      """Valid dataset and invalid driver."""
  
      path = str(tmpdir.join("test_invalid_driver.tif"))
      rasterio.shutil.copy(path_rgb_byte_tif, path)
      with pytest.raises(DriverRegistrationError) as e:
          rasterio.shutil.delete(path, driver="trash")
      assert "Unrecognized driver" in str(e.value)
  
file_path: rasterio/tests/test_shutil.py
imports: import os
  import numpy
  import pytest
  import rasterio
  import rasterio.shutil
  from rasterio._err import CPLE_NotSupportedError
  from rasterio.errors import DriverRegistrationError, RasterioIOError
label_desc: Use image node_id 3 for calling a global function with example usage: test_delete_invalid_driver(path_rgb_byte_tif, tmpdir) without return types