code: def test_remove(tmpdir, driver):
      extension = {"ESRI Shapefile": "shp", "GeoJSON": "json"}[driver]
      filename = f"delete_me.{extension}"
      filename = str(tmpdir.join(filename))
      create_sample_data(filename, driver)
  
      result = CliRunner().invoke(main_group, ["rm", filename, "--yes"])
      assert result.exit_code == 0
      assert not os.path.exists(filename)
  
file_path: Fiona/tests/test_fio_rm.py
imports: import os
  import pytest
  from click.testing import CliRunner
  import fiona
  from fiona.model import Feature
  from fiona.fio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_remove(tmpdir, driver) without return types