code: def write_by_lines(path, data):
      """write the data"""
      with open(path, "w", encoding="utf8") as outfile:
          print("len data:", len(data))
          [outfile.write(d + " \n") for d in data]
  
file_path: DeepKE/example/ee/standard/data/ACE/preprocess/preprocessing/process_bertcrf.py
imports: import argparse
  import json
  from collections import Counter, defaultdict
  import os, sys
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: write_by_lines(path, data) without return types