code: def _load_regions(self, idx, object_map, relationship_map):
      if self._return_scene_graph is None:
          return None, None
  
      image_info = self._get_image_info(idx)
      image_height = image_info["height"]
      image_width = image_info["width"]
      region_map = {}
      regions = []
  
      for region in image_info["regions"]:
          for synset in region["synsets"]:
              synset["entity_name"] = self.name_processor(
                  {"tokens": [synset["entity_name"]]}
              )["text"]
              synset["synset_name"] = self.synset_processor(
                  {"tokens": [synset["synset_name"]]}
              )["text"]
  
          region["height"] /= image_height
          region["width"] /= image_width
          region["y"] /= image_height
          region["x"] /= image_width
  
          relationships = []
          objects = []
  
          for relationship_idx in region["relationships"]:
              relationships.append(relationship_map[relationship_idx])
  
          for object_idx in region["objects"]:
              objects.append(object_map[object_idx])
  
          region["relationships"] = relationships
          region["objects"] = objects
          region["phrase"] = self.text_processor(
              {"text": region["phrase"]}
          )["text"]
  
          region = Sample(region)
          region_map[region["region_id"]] = region
          regions.append(region)
  
      regions = SampleList(regions)
      return regions, region_map
  
file_path: mmf/mmf/datasets/builders/visual_genome/dataset.py
imports: import copy
  import json
  import torch
  from mmf.common.sample import Sample, SampleList
  from mmf.datasets.builders.vqa2 import VQA2Dataset
  from mmf.datasets.databases.scene_graph_database import SceneGraphDatabase
label_desc: Use image node_id 10 for calling the VisualGenomeDataset obj's underlying member method code with example usage: obj._load_regions(idx, object_map, relationship_map) and returns: regions,  region_map, None,  None