code: def __getitem__(self, idx):
      sample_info = self.annotation_db[idx]
      sample_info = self._preprocess_answer(sample_info)
      sample_info["question_id"] = sample_info["id"]
      current_sample = Sample()
  
      if self._use_features is True:
          features = self.features_db[idx]
  
          if hasattr(self, "transformer_bbox_processor"):
              features[
                  "image_info_0"
              ] = self.transformer_bbox_processor(
                  features["image_info_0"]
              )
  
          if self.config.get("use_image_feature_masks", False):
              current_sample.update(
                  {
                      "image_labels": self.masked_region_processor(
                          features["image_feature_0"]
                      )
                  }
              )
  
          current_sample.update(features)
  
      current_sample = self._add_masked_question(
          sample_info, current_sample
      )
      if self._add_answer:
          current_sample = self.add_answer_info(
              sample_info, current_sample
          )
  
      return current_sample
  
file_path: mmf/mmf/datasets/builders/visual_genome/masked_dataset.py
imports: from mmf.common.sample import Sample
  from mmf.datasets.mmf_dataset import MMFDataset
label_desc: Use image node_id 2 for calling the MaskedVisualGenomeDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: current_sample