code: def _load_scene_graph(self, idx, sample):
      if self.scene_graph_db is None:
          return sample
  
      image_info = self._get_image_info(idx)
      regions = image_info["regions"]
  
      objects, object_map = self._load_objects(idx)
  
      if self._return_objects:
          sample.objects = objects
  
      relationships, relationship_map = self._load_relationships(
          idx, object_map
      )
  
      if self._return_relationships:
          sample.relationships = relationships
  
      regions, _ = self._load_regions(idx, object_map, relationship_map)
  
      if self._return_scene_graph:
          sample.scene_graph = regions
  
      return sample
  
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 7 for calling the VisualGenomeDataset obj's underlying member method code with example usage: obj._load_scene_graph(idx, sample) and returns: sample, sample