code: def __init__(self, config, scene_graph_path, *args, **kwargs):
      super().__init__(config, scene_graph_path, *args, **kwargs)
      self.data_dict = {}
      for item in self.data:
          self.data_dict[item["image_id"]] = item
  
imports: from mmf.datasets.databases.annotation_database import AnnotationDatabase
label_desc: Use image node_id 1 to create a new SceneGraphDatabase object from inherited base classes: AnnotationDatabase with example: obj = SceneGraphDatabase(config, scene_graph_path)