code: def hijack_ddpm_edit():
      global ddpm_edit_hijack
      if not ddpm_edit_hijack:
          CondFunc(
              "modules.models.diffusion.ddpm_edit.LatentDiffusion.decode_first_stage",
              first_stage_sub,
              first_stage_cond,
          )
          CondFunc(
              "modules.models.diffusion.ddpm_edit.LatentDiffusion.encode_first_stage",
              first_stage_sub,
              first_stage_cond,
          )
          ddpm_edit_hijack = CondFunc(
              "modules.models.diffusion.ddpm_edit.LatentDiffusion.apply_model",
              apply_model,
              unet_needs_upcast,
          )
  
file_path: stable-diffusion-webui/modules/sd_hijack_unet.py
imports: import torch
  from packaging import version
  from modules import devices
  from modules.sd_hijack_utils import CondFunc
label_desc: Use image node_id 2 for calling a global function with example usage: hijack_ddpm_edit() without return types