code: def install_ui_tempdir_override():
      """override save to file function so that it also writes PNG info"""
      gradio.components.IOComponent.pil_to_temp_file = save_pil_to_file
  
file_path: stable-diffusion-webui/modules/ui_tempdir.py
imports: import os
  import tempfile
  from collections import namedtuple
  from pathlib import Path
  import gradio.components
  from PIL import PngImagePlugin
  from modules import shared
label_desc: Use image node_id 4 for calling a global function with example usage: install_ui_tempdir_override() without return types