code: def build(self):
      visdial_json_file = os.path.join(
          self.args.data_dir,
          "visdial_%.1f_%s.json"
          % (self.args.version, self.args.set_type),
      )
      data = None
  
      with open(visdial_json_file, "r") as f:
          data = json.load(f)["data"]
  
      final_questions = self.get_tokens(data["questions"])
      final_answers = self.get_tokens(data["answers"])
      dialogs = data["dialogs"]
  
      dialogs_with_features = self.parse_dialogs(dialogs)
  
      imdb = {
          "questions": final_questions,
          "answers": final_answers,
          "dialogs": dialogs_with_features,
      }
  
      self.save_imdb(imdb)
  
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 4 for calling the IMDBBuilder obj's underlying member method code with example usage: obj.build() without return types