code: def test_rm(runner, driver, path_rgb_byte_tif, tmpdir):
      path = str(tmpdir.join("test_rm.tif"))
      rasterio.shutil.copy(path_rgb_byte_tif, path)
  
      args = ["rm", path, "--yes"]
      if driver is not None:
          args.extend(["--driver", driver])
  
      result = runner.invoke(main_group, args)
      assert result.exit_code == 0
      assert not rasterio.shutil.exists(path), path
  
imports: import pytest
  import rasterio
  import rasterio.shutil
  from rasterio.rio.main import main_group
label_desc: Use image node_id 1 for calling a global function with example usage: test_rm(runner, driver, path_rgb_byte_tif, tmpdir) without return types