code: def test_rm_invalid_dataset(runner):
      """Invalid dataset."""
  
      result = runner.invoke(main_group, ["rm", "trash", "--yes"])
      assert result.exit_code != 0
      assert "Invalid dataset: trash" in result.output
  
imports: import pytest
  import rasterio
  import rasterio.shutil
  from rasterio.rio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_rm_invalid_dataset(runner) without return types