code: def base_gpt3_architecture(args):
      args.decoder_input_dim = args.decoder_embed_dim
      args.decoder_output_dim = args.decoder_embed_dim
      args.decoder_ffn_embed_dim = safe_getattr(
          args, "decoder_ffn_embed_dim", args.decoder_embed_dim * 4
      )
      # GPT-3 used learned positional embeddings, rather than sinusoidal
      args.decoder_learned_pos = safe_getattr(
          args, "decoder_learned_pos", True
      )
      args.dropout = safe_getattr(args, "dropout", 0.0)
      args.attention_dropout = safe_getattr(
          args, "attention_dropout", 0.0
      )
      args.activation_fn = safe_getattr(args, "activation_fn", "gelu")
      args.share_decoder_input_output_embed = True
      base_lm_architecture(args)
  
imports: from dataclasses import dataclass, field
  from typing import Optional
  from omegaconf import II
  from fairseq import options, utils
  from fairseq.dataclass import ChoiceEnum, FairseqDataclass
  from fairseq.models import FairseqLanguageModel, register_model, register_model_architecture
  from fairseq.models.transformer import DEFAULT_MIN_PARAMS_TO_WRAP, Embedding, TransformerDecoder
  from fairseq.modules import AdaptiveInput, CharacterTokenEmbedder
  from fairseq.utils import safe_getattr, safe_hasattr
label_desc: Use image node_id 12 for calling a global function with example usage: base_gpt3_architecture(args) without return types