code: def ui(self, is_img2img):
      if not is_img2img:
          return None
  
      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=4,
          elem_id=self.elem_id("mask_blur"),
      )
      inpainting_fill = gr.Radio(
          label="Masked content",
          choices=[
              "fill",
              "original",
              "latent noise",
              "latent nothing",
          ],
          value="fill",
          type="index",
          elem_id=self.elem_id("inpainting_fill"),
      )
      direction = gr.CheckboxGroup(
          label="Outpainting direction",
          choices=["left", "right", "up", "down"],
          value=["left", "right", "up", "down"],
          elem_id=self.elem_id("direction"),
      )
  
      return [pixels, mask_blur, inpainting_fill, direction]
  
file_path: stable-diffusion-webui/scripts/poor_mans_outpainting.py
imports: import math
  import modules.scripts
  import gradio
  from PIL import Image, ImageDraw
  from modules import images, devices
  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