code: def __init__(self, image, p, filename, pnginfo):
      self.image = image
      """the PIL image itself"""
  
      self.p = p
      """p object with processing parameters; either StableDiffusionProcessing or an object with same fields"""
  
      self.filename = filename
      """name of file that the image would be saved to"""
  
      self.pnginfo = pnginfo
      """dictionary with parameters for image's PNG info data; infotext will have the key 'parameters'"""
  
imports: import inspect
  import os
  from collections import namedtuple
  from typing import Optional, Any
  from fastapi import FastAPI
  from gradio import Blocks
  from modules import errors, timer
label_desc: Use image node_id 1 to create a new ImageSaveParams object  with example: obj = ImageSaveParams(image, p, filename, pnginfo)