code: def write_dicts_as_json_per_line(list_of_dicts, txt_file_path):
      with io.open(txt_file_path, mode="w", encoding="utf-8") as file:
          for idx, mention in enumerate(list_of_dicts):
              json_string = json.dumps(mention)
              file.write(json_string)
  
              if idx != (len(list_of_dicts) - 1):
                  file.write("\n")
  
file_path: BLINK/blink/utils.py
imports: import io
  import json
  import os
  import pickle
  from segtok.segmenter import split_multi
label_desc: Use image node_id 6 for calling a global function with example usage: write_dicts_as_json_per_line(list_of_dicts, txt_file_path) without return types