code: def load_annotation_db(self, path):
      data = []
      with open(path) as f:
          for line in f:
              annotation = json.loads(line)
              loc_narr = LocalizedNarrative(**annotation)
              data.append(
                  {
                      "dataset_id": loc_narr.dataset_id,
                      "image_id": loc_narr.image_id,
                      "caption": loc_narr.caption,
                      "feature_path": self._feature_path(
                          loc_narr.dataset_id, loc_narr.image_id
                      ),
                  }
              )
      self.data = data
  
file_path: mmf/mmf/datasets/builders/localized_narratives/database.py
imports: import json
  from typing import List, NamedTuple, Optional
  from mmf.datasets.databases.annotation_database import AnnotationDatabase
label_desc: Use image node_id 2 for calling the LocalizedNarrativesAnnotationDatabase obj's underlying member method code with example usage: obj.load_annotation_db(path) without return types