code: def on_ui_settings():
      import gradio as gr
  
      shared.opts.add_option(
          "ldsr_steps",
          shared.OptionInfo(
              100,
              "LDSR processing steps. Lower = faster",
              gr.Slider,
              {"minimum": 1, "maximum": 200, "step": 1},
              section=("upscaling", "Upscaling"),
          ),
      )
      shared.opts.add_option(
          "ldsr_cached",
          shared.OptionInfo(
              False,
              "Cache LDSR model in memory",
              gr.Checkbox,
              {"interactive": True},
              section=("upscaling", "Upscaling"),
          ),
      )
  
file_path: stable-diffusion-webui/extensions-builtin/LDSR/scripts/ldsr_model.py
imports: import os
  from modules.modelloader import load_file_from_url
  from modules.upscaler import Upscaler, UpscalerData
  from ldsr_model_arch import LDSR
  from modules import shared, script_callbacks, errors
  import sd_hijack_autoencoder
  import sd_hijack_ddpm_v1
label_desc: Use image node_id 1 for calling a global function with example usage: on_ui_settings() without return types