code: def ui(self):
      with ui_components.InputAccordion(
          False, label="CodeFormer"
      ) as enable:
          with gr.Row():
              codeformer_visibility = gr.Slider(
                  minimum=0.0,
                  maximum=1.0,
                  step=0.001,
                  label="Visibility",
                  value=1.0,
                  elem_id="extras_codeformer_visibility",
              )
              codeformer_weight = gr.Slider(
                  minimum=0.0,
                  maximum=1.0,
                  step=0.001,
                  label="Weight (0 = maximum effect, 1 = minimum effect)",
                  value=0,
                  elem_id="extras_codeformer_weight",
              )
  
      return {
          "enable": enable,
          "codeformer_visibility": codeformer_visibility,
          "codeformer_weight": codeformer_weight,
      }
  
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 1 for calling the ScriptPostprocessingCodeFormer obj's underlying member method code with example usage: obj.ui() and returns: dict