code: def write_json(json_file_name, data):
      with open(
          json_file_name, mode="w", encoding="utf-8"
      ) as output_file:
          json.dump(
              data,
              output_file,
              ensure_ascii=False,
              indent=2,
              separators=(",", ": "),
          )
  
imports: import json
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: write_json(json_file_name, data) without return types