code: def build_encoder(cls, args, src_dict, embed_tokens):
      return TransformerMonotonicEncoder(args, src_dict, embed_tokens)
  
imports: from typing import Dict, List, NamedTuple, Optional
  import torch
  import torch.nn
  from examples.simultaneous_translation.modules.monotonic_transformer_layer import TransformerMonotonicDecoderLayer, TransformerMonotonicEncoderLayer
  from fairseq.models import register_model, register_model_architecture
  from fairseq.models.transformer import TransformerModel, TransformerEncoder, TransformerDecoder, base_architecture, transformer_iwslt_de_en, transformer_vaswani_wmt_en_de_big, tiny_architecture
  from torch import Tensor
label_desc: Use image node_id 1 for calling the TransformerModelSimulTrans obj's underlying member method code with example usage: obj.build_encoder(cls, args, src_dict, embed_tokens) and returns: TransformerMonotonicEncoder