code: def __init__(self, config):
      super().__init__(config)
      self.mmt_config = BertConfig(**self.config.mmt)
      self._datasets = registry.get("config").datasets.split(",")
  
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 M4C object from inherited base classes: BaseModel with example: obj = M4C(config)