code: def forward(self, sample_list):
      image_proj = self.get_image_embeddings(sample_list)
      text_proj = self.get_text_embeddings(sample_list)
  
      output = {
          "scores": image_proj,
          "targets": text_proj,
          "text_len": sample_list.input_mask.sum(-1).flatten(),
      }
  
      return output
  
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 9 for calling the CMSharedTransformer obj's underlying member method code with example usage: obj.forward(sample_list) and returns: output