code: def make_parlai_format(outpath, dtype, data):
      print("building parlai:" + dtype)
      with PathManager.open(
          os.path.join(outpath, dtype + ".txt"), "w"
      ) as fout:
          for data_point in data:
              fout.write(_handle_data_point(data_point))
  
imports: from parlai.core.build_data import DownloadableFile
  from parlai.utils.io import PathManager
  import parlai.core.build_data
  import os
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: make_parlai_format(outpath, dtype, data) without return types