code: def __init__(
      self,
      text_layer_cfg: ConfigType,
      fusion_layer_cfg: ConfigType,
      **kwargs,
  ) -> None:
      self.text_layer_cfg = text_layer_cfg
      self.fusion_layer_cfg = fusion_layer_cfg
      super().__init__(**kwargs)
  
imports: import torch
  import torch.nn
  from mmcv.cnn import build_norm_layer
  from mmcv.cnn.bricks.transformer import FFN, MultiheadAttention
  from mmcv.ops import MultiScaleDeformableAttention
  from mmengine.model import ModuleList
  from torch import Tensor
  from mmdet.models.utils.vlfuse_helper import SingleScaleBiAttentionBlock
  from mmdet.utils import ConfigType, OptConfigType
  from .deformable_detr_layers import DeformableDetrTransformerDecoderLayer, DeformableDetrTransformerEncoder, DeformableDetrTransformerEncoderLayer
  from .detr_layers import DetrTransformerEncoderLayer
  from .dino_layers import DinoTransformerDecoder
  from .utils import MLP, get_text_sine_pos_embed
label_desc: Use image node_id 1 to create a new GroundingDinoTransformerEncoder object from inherited base classes: DeformableDetrTransformerEncoder with example: obj = GroundingDinoTransformerEncoder(text_layer_cfg, fusion_layer_cfg)