def METHOD_NAME(self, models, sample: Dict[str, Dict[str, Tensor]], **kwargs):
    """Generate a batch of 1-best hypotheses. Match the API of other fairseq generators.
    Normally called for validation during training.
    Args:
        models (List[~fairseq.models.FairseqModel]): ensemble of models
        sample (dict): batch
        bos_token (int, optional): beginning of sentence token
            (default: self.eos)
    """
    return self._decode(sample, **kwargs)