code: def ui(self):
      with FormRow():
          upscaler_name = gr.Dropdown(
              label="Upscaler",
              choices=[x.name for x in shared.sd_upscalers],
              value=shared.sd_upscalers[0].name,
          )
          upscale_by = gr.Slider(
              minimum=0.05,
              maximum=8.0,
              step=0.05,
              label="Upscale by",
              value=2,
          )
  
      return {
          "upscale_by": upscale_by,
          "upscaler_name": upscaler_name,
      }
  
file_path: stable-diffusion-webui/scripts/postprocessing_upscale.py
imports: from PIL import Image
  import numpy
  from modules import scripts_postprocessing, shared
  import gradio
  from modules.ui_components import FormRow, ToolButton
  from modules.ui import switch_values_symbol
label_desc: Use image node_id 1 for calling the ScriptPostprocessingUpscaleSimple obj's underlying member method code with example usage: obj.ui() and returns: dict