code: def add_parser(experiments_subparsers, parent_parser):
      from . import add_rev_selection_flags
  
      EXPERIMENTS_REMOVE_HELP = "Remove experiments."
      experiments_remove_parser = experiments_subparsers.add_parser(
          "remove",
          aliases=["rm"],
          parents=[parent_parser],
          description=append_doc_link(
              EXPERIMENTS_REMOVE_HELP, "exp/remove"
          ),
          help=EXPERIMENTS_REMOVE_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      remove_group = (
          experiments_remove_parser.add_mutually_exclusive_group()
      )
      add_rev_selection_flags(
          experiments_remove_parser, "Remove", False
      )
      remove_group.add_argument(
          "--queue",
          action="store_true",
          help="Remove all queued experiments.",
      )
      remove_group.add_argument(
          "-g",
          "--git-remote",
          metavar="<git_remote>",
          help="Name or URL of the Git remote to remove the experiment from",
      )
      experiments_remove_parser.add_argument(
          "experiment",
          nargs="*",
          help="Experiments to remove.",
          metavar="<experiment>",
      )
      experiments_remove_parser.set_defaults(func=CmdExperimentsRemove)
  
file_path: dvc/dvc/commands/experiments/remove.py
imports: from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.exceptions import InvalidArgumentError
  from dvc.log import logger
  from dvc.ui import ui
label_desc: Use image node_id 1 for calling a global function with example usage: add_parser(experiments_subparsers, parent_parser) without return types