code: def ui(self, is_img2img):
      info = gr.Markdown(
          """
          * `CFG Scale` should be 2 or lower.
          """
      )
  
      override_sampler = gr.Checkbox(
          label="Override `Sampling method` to Euler?(this method is built for it)",
          value=True,
          elem_id=self.elem_id("override_sampler"),
      )
  
      override_prompt = gr.Checkbox(
          label="Override `prompt` to the same value as `original prompt`?(and `negative prompt`)",
          value=True,
          elem_id=self.elem_id("override_prompt"),
      )
      original_prompt = gr.Textbox(
          label="Original prompt",
          lines=1,
          elem_id=self.elem_id("original_prompt"),
      )
      original_negative_prompt = gr.Textbox(
          label="Original negative prompt",
          lines=1,
          elem_id=self.elem_id("original_negative_prompt"),
      )
  
      override_steps = gr.Checkbox(
          label="Override `Sampling Steps` to the same value as `Decode steps`?",
          value=True,
          elem_id=self.elem_id("override_steps"),
      )
      st = gr.Slider(
          label="Decode steps",
          minimum=1,
          maximum=150,
          step=1,
          value=50,
          elem_id=self.elem_id("st"),
      )
  
      override_strength = gr.Checkbox(
          label="Override `Denoising strength` to 1?",
          value=True,
          elem_id=self.elem_id("override_strength"),
      )
  
      cfg = gr.Slider(
          label="Decode CFG scale",
          minimum=0.0,
          maximum=15.0,
          step=0.1,
          value=1.0,
          elem_id=self.elem_id("cfg"),
      )
      randomness = gr.Slider(
          label="Randomness",
          minimum=0.0,
          maximum=1.0,
          step=0.01,
          value=0.0,
          elem_id=self.elem_id("randomness"),
      )
      sigma_adjustment = gr.Checkbox(
          label="Sigma adjustment for finding noise for image",
          value=False,
          elem_id=self.elem_id("sigma_adjustment"),
      )
  
      return [
          info,
          override_sampler,
          override_prompt,
          original_prompt,
          original_negative_prompt,
          override_steps,
          st,
          override_strength,
          cfg,
          randomness,
          sigma_adjustment,
      ]
  
file_path: stable-diffusion-webui/scripts/img2imgalt.py
imports: from collections import namedtuple
  import numpy
  from tqdm import trange
  import modules.scripts
  import gradio
  from modules import processing, shared, sd_samplers, sd_samplers_common
  import torch
  import k_diffusion
label_desc: Use image node_id 4 for calling the Script obj's underlying member method code with example usage: obj.ui(is_img2img) and returns: list