code: def show(self, is_img2img):
      return is_img2img
  
file_path: stable-diffusion-webui/scripts/loopback.py
imports: import math
  import gradio
  import modules.scripts
  from modules import deepbooru, images, processing, shared
  from modules.processing import Processed
  from modules.shared import opts, state
label_desc: Use image node_id 2 for calling the Script obj's underlying member method code with example usage: obj.show(is_img2img) and returns: is_img2img