code: def write_file(file_name, contents, **kwargs):
      """
      Dump json data to file.
  
      All kwargs will be proxied to `json.dump` method as is.
  
      :param file_name: file to dump to
      :param contents: JSON-serializable object
      """
      with open(file_name, "w") as f:
          dump(contents, f, **kwargs)
  
imports: from library.python.json.loads import loads
  from simplejson import loads
  from simplejson import load, dump, dumps
label_desc: Use image node_id 3 for calling a global function with example usage: write_file(file_name, contents) without return types