code: def __init__(self, config):
      super().__init__(config)
      self.config = config
  
      self.embeddings = BertEmbeddings(config)
      self.encoder = BertEncoder(config)
      self.pooler = BertPooler(config)
  
      self.init_weights()
      self.use_ext_encoder = False
  
imports: from typing import List, Optional
  from loguru import logger
  from nebullvm.optional_modules.torch import torch, torch_distributed
  from nebullvm.optional_modules.huggingface import BertConfig, BertEmbeddings, BertEncoder, BertPooler, BertPreTrainedModel
  from .checkpoint_quantization import checkpoint_quantization
label_desc: Use image node_id 1 to create a new BertModel object from inherited base classes: BertPreTrainedModel with example: obj = BertModel(config)