code: def write_to_file(list_of_json_dict, output_path):
      with open(output_path, "w") as outfile:
          for line in list_of_json_dict:
              json.dump(line, outfile)
              outfile.write("\n")
  
file_path: ParlAI/projects/roscoe/roscoe_data/restore_annotated.py
imports: import json
  import csv
  import os
  import re
  import xmltodict
  from parlai.core.params import ParlaiParser
label_desc: Use image node_id 1 for calling a global function with example usage: write_to_file(list_of_json_dict, output_path) without return types