code: def process(
      self,
      pp: scripts_postprocessing.PostprocessedImage,
      enable,
      codeformer_visibility,
      codeformer_weight,
  ):
      if codeformer_visibility == 0 or not enable:
          return
  
      restored_img = codeformer_model.codeformer.restore(
          np.array(pp.image, dtype=np.uint8), w=codeformer_weight
      )
      res = Image.fromarray(restored_img)
  
      if codeformer_visibility < 1.0:
          res = Image.blend(pp.image, res, codeformer_visibility)
  
      pp.image = res
      pp.info["CodeFormer visibility"] = round(codeformer_visibility, 3)
      pp.info["CodeFormer weight"] = round(codeformer_weight, 3)
  
file_path: stable-diffusion-webui/scripts/postprocessing_codeformer.py
imports: from PIL import Image
  import numpy
  from modules import scripts_postprocessing, codeformer_model, ui_components
  import gradio
label_desc: Use image node_id 2 for calling the ScriptPostprocessingCodeFormer obj's underlying member method code with example usage: obj.process(pp, enable, codeformer_visibility, codeformer_weight) without return types