code: def ui(self, is_img2img):
      info = gr.HTML(
          '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>'
      )
      overlap = gr.Slider(
          minimum=0,
          maximum=256,
          step=16,
          label="Tile overlap",
          value=64,
          elem_id=self.elem_id("overlap"),
      )
      scale_factor = gr.Slider(
          minimum=1.0,
          maximum=4.0,
          step=0.05,
          label="Scale Factor",
          value=2.0,
          elem_id=self.elem_id("scale_factor"),
      )
      upscaler_index = gr.Radio(
          label="Upscaler",
          choices=[x.name for x in shared.sd_upscalers],
          value=shared.sd_upscalers[0].name,
          type="index",
          elem_id=self.elem_id("upscaler_index"),
      )
  
      return [info, overlap, upscaler_index, scale_factor]
  
file_path: stable-diffusion-webui/scripts/sd_upscale.py
imports: import math
  import modules.scripts
  import gradio
  from PIL import Image
  from modules import processing, shared, images, devices
  from modules.processing import Processed
  from modules.shared import opts, state
label_desc: Use image node_id 3 for calling the Script obj's underlying member method code with example usage: obj.ui(is_img2img) and returns: list