code: def _get_sample_list(self):
      bs = 8
      num_feats = 100
      max_sentence_len = 25
      img_dim = 2048
      cls_dim = 3129
      input_ids = torch.ones((bs, max_sentence_len), dtype=torch.long)
      input_mask = torch.ones((bs, max_sentence_len), dtype=torch.long)
      image_feat = torch.rand((bs, num_feats, img_dim))
      position_ids = (
          torch.arange(
              0,
              max_sentence_len,
              dtype=torch.long,
              device=image_feat.device,
          )
          .unsqueeze(0)
          .expand(bs, -1)
      )
      img_pos_feat = torch.rand((bs, num_feats, 7))
      attention_mask = torch.zeros(
          (bs, max_sentence_len + num_feats), dtype=torch.long
      )
      image_mask = torch.zeros((bs, num_feats), dtype=torch.long)
      targets = torch.rand((bs, cls_dim))
  
      sample_list = SampleList()
      sample_list.add_field("input_ids", input_ids)
      sample_list.add_field("input_mask", input_mask)
      sample_list.add_field("image_feat", image_feat)
      sample_list.add_field("img_pos_feat", img_pos_feat)
      sample_list.add_field("attention_mask", attention_mask)
      sample_list.add_field("image_mask", image_mask)
      sample_list.add_field("targets", targets)
      sample_list.add_field("dataset_name", "test")
      sample_list.add_field("dataset_type", "test")
      sample_list.add_field("position_ids", position_ids)
      sample_list.to(get_current_device())
  
      return sample_list
  
imports: import gc
  import unittest
  import tests.test_utils
  import torch
  from mmf.common.sample import SampleList
  from mmf.models.uniter import UNITERForClassification, UNITERForPretraining, UNITERImageEmbeddings, UNITERModelBase
  from mmf.utils.build import build_model
  from mmf.utils.configuration import Configuration
  from mmf.utils.env import setup_imports, teardown_imports
  from mmf.utils.general import get_current_device
  from omegaconf import OmegaConf
label_desc: Use image node_id 1 for calling the TestUniterWithHeads obj's underlying member method code with example usage: obj._get_sample_list() and returns: sample_list