class_docstr: allows saving and restoring default values for gradio components
class_docstr_tok: ["allows","saving","and","restoring","default","values","for","gradio","components"]
docstr: saves default values to a file unless tjhe file is present and there was an error loading default values at start
docstr_tok: ["saves","default","values","to","a","file","unless","tjhe","file","is","present","and","there","was","an","error","loading","default","values","at","start"]
code: def dump_defaults(self):
      """saves default values to a file unless tjhe file is present and there was an error loading default values at start"""
  
      if self.error_loading and os.path.exists(self.filename):
          return
  
      self.write_to_file(self.ui_settings)
  
file_path: stable-diffusion-webui/modules/ui_loadsave.py
imports: import json
  import os
  import gradio
  from modules import errors
  from modules.ui_components import ToolButton, InputAccordion
label_desc: Use image node_id 6 for calling the UiLoadsave obj's underlying member method code with example usage: obj.dump_defaults() without return types