code: def test_copy_bad_driver():
      with pytest.raises(DriverRegistrationError):
          rasterio.shutil.copy(
              "tests/data/RGB.byte.tif", None, driver="trash"
          )
  
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 7 for calling a global function with example usage: test_copy_bad_driver() without return types