code: def write_to_json(path, datas):
      with open(path, "w", encoding="utf-8") as writer:
          for data in datas:
              writer.write(json.dumps(data, ensure_ascii=False) + "\n")
  
imports: import json
  import hashlib
label_desc: Use image node_id 4 for calling a global function with example usage: write_to_json(path, datas) without return types