code: def ui(self, is_img2img):
      if not is_img2img:
          return None
  
      info = gr.HTML(
          '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>'
      )
  
      pixels = gr.Slider(
          label="Pixels to expand",
          minimum=8,
          maximum=256,
          step=8,
          value=128,
          elem_id=self.elem_id("pixels"),
      )
      mask_blur = gr.Slider(
          label="Mask blur",
          minimum=0,
          maximum=64,
          step=1,
          value=8,
          elem_id=self.elem_id("mask_blur"),
      )
      direction = gr.CheckboxGroup(
          label="Outpainting direction",
          choices=["left", "right", "up", "down"],
          value=["left", "right", "up", "down"],
          elem_id=self.elem_id("direction"),
      )
      noise_q = gr.Slider(
          label="Fall-off exponent (lower=higher detail)",
          minimum=0.0,
          maximum=4.0,
          step=0.01,
          value=1.0,
          elem_id=self.elem_id("noise_q"),
      )
      color_variation = gr.Slider(
          label="Color variation",
          minimum=0.0,
          maximum=1.0,
          step=0.01,
          value=0.05,
          elem_id=self.elem_id("color_variation"),
      )
  
      return [
          info,
          pixels,
          mask_blur,
          direction,
          noise_q,
          color_variation,
      ]
  
file_path: stable-diffusion-webui/scripts/outpainting_mk_2.py
imports: import math
  import numpy
  import skimage
  import modules.scripts
  import gradio
  from PIL import Image, ImageDraw
  from modules import images
  from modules.processing import Processed, process_images
  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, None