code: def dict_to_json(dict, fname):
      """
      Dump a Python dictionary to JSON file
  
      Args:
          dict (dict): Python dictionary
          fname (str): Output file name
  
      """
      with open(fname, "a") as f:
          json.dump(dict, f)
          f.write("\n")
  
file_path: GraphGym/graphgym/utils/io.py
imports: import ast
  import json
  import os
  import shutil
label_desc: Use image node_id 2 for calling a global function with example usage: dict_to_json(dict, fname) without return types