code: def __init__(
      self,
      image_size=[32, 128],
      patch_size=4,
      num_channels=3,
      max_token_length=27,
      num_character_labels=38,
      num_bpe_labels=50257,
      num_wordpiece_labels=30522,
      hidden_size=768,
      num_hidden_layers=12,
      num_attention_heads=12,
      mlp_ratio=4.0,
      qkv_bias=True,
      distilled=False,
      layer_norm_eps=1e-5,
      drop_rate=0.0,
      attn_drop_rate=0.0,
      drop_path_rate=0.0,
      output_a3_attentions=False,
      initializer_range=0.02,
      **kwargs,
  ):
      super().__init__(**kwargs)
  
      self.image_size = image_size
      self.patch_size = patch_size
      self.num_channels = num_channels
      self.max_token_length = max_token_length
      self.num_character_labels = num_character_labels
      self.num_bpe_labels = num_bpe_labels
      self.num_wordpiece_labels = num_wordpiece_labels
      self.hidden_size = hidden_size
      self.num_hidden_layers = num_hidden_layers
      self.num_attention_heads = num_attention_heads
      self.mlp_ratio = mlp_ratio
      self.distilled = distilled
      self.layer_norm_eps = layer_norm_eps
      self.drop_rate = drop_rate
      self.qkv_bias = qkv_bias
      self.attn_drop_rate = attn_drop_rate
      self.drop_path_rate = drop_path_rate
      self.output_a3_attentions = output_a3_attentions
      self.initializer_range = initializer_range
  
imports: from ...configuration_utils import PretrainedConfig
  from ...utils import logging
label_desc: Use image node_id 1 to create a new MgpstrConfig object from inherited base classes: PretrainedConfig with example: obj = MgpstrConfig(image_size, patch_size, num_channels, max_token_length, num_character_labels, num_bpe_labels, num_wordpiece_labels, hidden_size, num_hidden_layers, num_attention_heads, mlp_ratio, qkv_bias, distilled, layer_norm_eps, drop_rate, attn_drop_rate, drop_path_rate, output_a3_attentions, initializer_range)