code: def __init__(self, config):
      super().__init__(config)
  
      self.embeddings = BertEmbeddings(config)
      self.encoder = BertEncoder(config)
      self.init_weights()
  
imports: import functools
  import logging
  import math
  import torch
  import torch.nn.functional
  from mmf.common.registry import registry
  from mmf.models.base_model import BaseModel
  from mmf.modules.layers import ClassifierLayer
  from mmf.utils.build import build_image_encoder
  from omegaconf import OmegaConf
  from torch import nn
label_desc: Use image node_id 1 to create a new TextBert object from inherited base classes: BertPreTrainedModel with example: obj = TextBert(config)