def METHOD_NAME(cls, task, tokens):
    text = task.tgt_dict.string(tokens)
    tkn_cfg = task.data_cfg.bpe_tokenizer
    tokenizer = encoders.build_bpe(Namespace(**tkn_cfg))
    return text if tokenizer is None else tokenizer.decode(text)