def METHOD_NAME(cls, args, task, embed_tokens):
    tgt_dict = task.tgt_dict
    from examples.simultaneous_translation.models.transformer_monotonic_attention import (
        TransformerMonotonicDecoder,
    )
    decoder = TransformerMonotonicDecoder(args, tgt_dict, embed_tokens)
    if getattr(args, "load_pretrained_decoder_from", None):
        decoder = checkpoint_utils.load_pretrained_component_from_model(
            component=decoder, checkpoint=args.load_pretrained_decoder_from
        )
    return decoder