code: def write_json(file_name, data):
      print(f"writting {file_name}...")
      with open(file_name, "w") as outfile:
          outfile.write(json.dumps(data))
  
imports: import json
  import pickle
  import os.path
label_desc: Use image node_id 2 for calling a global function with example usage: write_json(file_name, data) without return types