def add_args(cls, parser):
        """Add task-specific arguments to the parser."""
        dc = getattr(cls, "__dataclass", None)
        if dc is not None:
            gen_parser_from_dataclass(parser, dc())
Add task-specific arguments to the parser.
understand_icl/fairseq/fairseq/tasks/fairseq_task.py