def METHOD_NAME(
    cls, opt, dictionary, embedding=None, padding_idx=None, reduction_type='mean'
):
    return cls.build_encoder(
        opt, dictionary, embedding, padding_idx, reduction_type
    )