code: def process(
      self,
      pp: scripts_postprocessing.PostprocessedImage,
      enable,
      split_threshold,
      overlap_ratio,
  ):
      if not enable:
          return
  
      width = pp.shared.target_width
      height = pp.shared.target_height
  
      if not width or not height:
          return
  
      if pp.image.height > pp.image.width:
          ratio = (pp.image.width * height) / (pp.image.height * width)
          inverse_xy = False
      else:
          ratio = (pp.image.height * width) / (pp.image.width * height)
          inverse_xy = True
  
      if ratio >= 1.0 and ratio > split_threshold:
          return
  
      result, *others = split_pic(
          pp.image, inverse_xy, width, height, overlap_ratio
      )
  
      pp.image = result
      pp.extra_images = [pp.create_copy(x) for x in others]
  
file_path: stable-diffusion-webui/scripts/postprocessing_split_oversized.py
imports: import math
  from modules import scripts_postprocessing, ui_components
  import gradio
label_desc: Use image node_id 2 for calling the ScriptPostprocessingSplitOversized obj's underlying member method code with example usage: obj.process(pp, enable, split_threshold, overlap_ratio) without return types