code: def is_needed(sd_model):
      return (
          shared.cmd_opts.lowvram
          or shared.cmd_opts.medvram
          or shared.cmd_opts.medvram_sdxl
          and hasattr(sd_model, "conditioner")
      )
  
imports: import torch
  from modules import devices, shared
label_desc: Use image node_id 2 for calling a global function with example usage: is_needed(sd_model) and returns: unknown