docstr: Initialize the config which is the model configuration.
docstr_tok: ["Initialize","the","config","which","is","the","model","configuration","."]
code: def __init__(self, config: BaseAlign.Config):
      """Initialize the config which is the model configuration."""
      super().__init__(config)
      self.config = config
      self.build()
  
imports: import math
  from copy import deepcopy
  from dataclasses import dataclass
  from typing import Any, Tuple
  import torch
  from mmf.common.registry import registry
  from mmf.models.base_model import BaseModel
  from mmf.modules.encoders import IdentityEncoder
  from mmf.modules.layers import AttnPool1d
  from mmf.utils.build import build_classifier_layer, build_image_encoder, build_text_encoder
  from mmf.utils.general import filter_grads
  from mmf.utils.modeling import get_bert_configured_parameters
  from mmf.utils.transform import transform_to_batch_sequence
  from omegaconf import MISSING
label_desc: Use image node_id 1 to create a new CMSharedTransformer object from inherited base classes: BaseAlign with example: obj = CMSharedTransformer(config)