code: def save_style(name, prompt, negative_prompt):
      if not name:
          return gr.update(visible=False)
  
      style = styles.PromptStyle(name, prompt, negative_prompt)
      shared.prompt_styles.styles[style.name] = style
      shared.prompt_styles.save_styles(shared.styles_filename)
  
      return gr.update(visible=True)
  
file_path: stable-diffusion-webui/modules/ui_prompt_styles.py
imports: import gradio
  from modules import shared, ui_common, ui_components, styles
label_desc: Use image node_id 2 for calling a global function with example usage: save_style(name, prompt, negative_prompt) and returns: gr, gr