docstr: Called for all scripts before calling process(). Scripts can examine the image here and set fields
  of the pp object to communicate things to other scripts.
  args contains a dictionary with all values returned by components from ui()
docstr_tok: ["Called","for","all","scripts","before","calling","process","(",")",".","Scripts","can","examine","the","image","here","and","set","fields","of","the","pp","object","to","communicate","things","to","other","scripts",".","args","contains","a","dictionary","with","all","values","returned","by","components","from","ui","(",")"]
code: def process_firstpass(self, pp: PostprocessedImage, **args):
      """
      Called for all scripts before calling process(). Scripts can examine the image here and set fields
      of the pp object to communicate things to other scripts.
      args contains a dictionary with all values returned by components from ui()
      """
  
      pass
  
imports: import dataclasses
  import os
  import gradio
  from modules import errors, shared
label_desc: Use image node_id 3 for calling the ScriptPostprocessing obj's underlying member method code with example usage: obj.process_firstpass(pp) without return types