code: def test_delete(driver, extension, path_rgb_byte_tif, tmpdir):
      """Delete a file with ``rasterio.shutil.delete()``.  Also specifies
      driver.
      """
  
      path = str(tmpdir.join("test_delete.{}".format(extension)))
      rasterio.shutil.copy(path_rgb_byte_tif, path)
      assert os.path.exists(path)
      rasterio.shutil.delete(path, driver=driver)
  
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 1 for calling a global function with example usage: test_delete(driver, extension, path_rgb_byte_tif, tmpdir) without return types