code: def base_architecture(args):
      args.encoder_embed_path = getattr(
          args, "encoder_embed_path", None
      )
      args.encoder_embed_dim = getattr(args, "encoder_embed_dim", 512)
      args.encoder_ffn_embed_dim = getattr(
          args, "encoder_ffn_embed_dim", 2048
      )
      args.encoder_layers = getattr(args, "encoder_layers", 6)
      args.encoder_attention_heads = getattr(
          args, "encoder_attention_heads", 8
      )
      args.encoder_normalize_before = getattr(
          args, "encoder_normalize_before", False
      )
      args.encoder_learned_pos = getattr(
          args, "encoder_learned_pos", False
      )
      args.decoder_embed_path = getattr(
          args, "decoder_embed_path", None
      )
      args.decoder_embed_dim = getattr(
          args, "decoder_embed_dim", args.encoder_embed_dim
      )
      args.decoder_ffn_embed_dim = getattr(
          args, "decoder_ffn_embed_dim", args.encoder_ffn_embed_dim
      )
      args.decoder_layers = getattr(args, "decoder_layers", 6)
      args.decoder_attention_heads = getattr(
          args, "decoder_attention_heads", 8
      )
      args.decoder_normalize_before = getattr(
          args, "decoder_normalize_before", False
      )
      args.decoder_learned_pos = getattr(
          args, "decoder_learned_pos", False
      )
      args.attention_dropout = getattr(args, "attention_dropout", 0.0)
      args.activation_dropout = getattr(args, "activation_dropout", 0.0)
      args.activation_fn = getattr(args, "activation_fn", "relu")
      args.dropout = getattr(args, "dropout", 0.1)
      args.adaptive_softmax_cutoff = getattr(
          args, "adaptive_softmax_cutoff", None
      )
      args.adaptive_softmax_dropout = getattr(
          args, "adaptive_softmax_dropout", 0
      )
      args.share_decoder_input_output_embed = getattr(
          args, "share_decoder_input_output_embed", False
      )
      args.share_all_embeddings = getattr(
          args, "share_all_embeddings", False
      )
      args.no_token_positional_embeddings = getattr(
          args, "no_token_positional_embeddings", False
      )
      args.adaptive_input = getattr(args, "adaptive_input", False)
      args.apply_bert_init = getattr(args, "apply_bert_init", False)
  
      args.decoder_output_dim = getattr(
          args, "decoder_output_dim", args.decoder_embed_dim
      )
      args.decoder_input_dim = getattr(
          args, "decoder_input_dim", args.decoder_embed_dim
      )
  
      # --- special arguments ---
      args.sg_length_pred = getattr(args, "sg_length_pred", False)
      args.pred_length_offset = getattr(
          args, "pred_length_offset", False
      )
      args.length_loss_factor = getattr(args, "length_loss_factor", 0.1)
      args.src_embedding_copy = getattr(
          args, "src_embedding_copy", False
      )
  
imports: import torch
  import torch.nn.functional
  from fairseq import utils
  from fairseq.iterative_refinement_generator import DecoderOut
  from fairseq.models import register_model, register_model_architecture
  from fairseq.models.nat import FairseqNATDecoder, FairseqNATModel, ensemble_decoder
  from fairseq.models.transformer import Embedding
  from fairseq.modules.transformer_sentence_encoder import init_bert_params
label_desc: Use image node_id 4 for calling a global function with example usage: base_architecture(args) without return types