code: def test_rm_invalid_driver(runner, tmpdir, path_rgb_byte_tif):
      """Valid dataset invalid driver."""
  
      path = str(tmpdir.join("test_rm_invalid_driver.tif"))
      rasterio.shutil.copy(path_rgb_byte_tif, path)
  
      result = runner.invoke(
          main_group, ["rm", path, "--driver", "trash", "--yes"]
      )
      assert result.exit_code != 0
      assert "Unrecognized driver: trash" in result.output
  
      # File still exists since test failed.  Cleanup.
      rasterio.shutil.delete(path)
  
imports: import pytest
  import rasterio
  import rasterio.shutil
  from rasterio.rio.main import main_group
label_desc: Use image node_id 3 for calling a global function with example usage: test_rm_invalid_driver(runner, tmpdir, path_rgb_byte_tif) without return types