code: def parse_dialogs(self, dialogs):
      id2path = self.get_id_to_path_dict()
  
      for dialog in dialogs:
          image_id = dialog["image_id"]
          image_feature_path = id2path[image_id]
          dialog["image_feature_path"] = image_feature_path
          dialog["caption"] = self.get_tokens(dialog["caption"])
  
      return dialogs
  
file_path: mmf/tools/scripts/visual_dialog/build_imdb.py
imports: import argparse
  import glob
  import json
  import os
  from mmf.utils.text import tokenize
label_desc: Use image node_id 7 for calling the IMDBBuilder obj's underlying member method code with example usage: obj.parse_dialogs(dialogs) and returns: dialogs