code: def show(self, is_img2img):
      return is_img2img
  
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 3 for calling the Script obj's underlying member method code with example usage: obj.show(is_img2img) and returns: is_img2img