code: def _encoder_decoder(c: TransformerConfigs):
      return EncoderDecoder(
          c.encoder, c.decoder, c.src_embed, c.tgt_embed, c.generator
      )
  
imports: import copy
  import torch.nn
  from labml.configs import BaseConfigs, option, calculate, aggregate
  from labml_helpers.module import Module
  from .feed_forward import FeedForward
  from .mha import MultiHeadAttention
  from .models import EmbeddingsWithPositionalEncoding, EmbeddingsWithLearnedPositionalEncoding, TransformerLayer, Encoder, Decoder, Generator, EncoderDecoder
label_desc: Use image node_id 18 for calling a global function with example usage: _encoder_decoder(c) and returns: EncoderDecoder