def METHOD_NAME(
    self,
    models,
    args,
    seq_gen_cls=None,
    extra_gen_cls_kwargs=None,
):
    if self.data_cfg.prepend_tgt_lang_tag and args.prefix_size != 1:
        raise ValueError(
            'Please set "--prefix-size 1" since '
            "target language ID token is prepended as BOS."
        )
    lang_token_ids = {
        i
        for s, i in self.tgt_dict.indices.items()
        if SpeechToTextDataset.is_lang_tag(s)
    }
    if extra_gen_cls_kwargs is None:
        extra_gen_cls_kwargs = {}
    extra_gen_cls_kwargs["symbols_to_strip_from_output"] = lang_token_ids
    return super().METHOD_NAME(
        models, args, seq_gen_cls=None,
        extra_gen_cls_kwargs=extra_gen_cls_kwargs
    )