code: def write_by_lines(path, data):
      """write the data"""
      with open(path, "w", encoding="utf8") as outfile:
          [outfile.write(d + "\n") for d in data]
  
file_path: DeepKE/src/deepke/event_extraction/standard/bertcrf/utils_ee.py
imports: import hashlib
  from transformers import XLMRobertaTokenizer, BertTokenizer, RobertaTokenizer
  from torch.nn.utils.rnn import pad_sequence
label_desc: Use image node_id 3 for calling a global function with example usage: write_by_lines(path, data) without return types