code: def get_unet_option(option=None):
      option = option or shared.opts.sd_unet
  
      if option == "None":
          return None
  
      if option == "Automatic":
          name = shared.sd_model.sd_checkpoint_info.model_name
  
          options = [x for x in unet_options if x.model_name == name]
  
          option = options[0].label if options else "None"
  
      return next(
          iter([x for x in unet_options if x.label == option]), None
      )
  
file_path: stable-diffusion-webui/modules/sd_unet.py
imports: import torch.nn
  from modules import script_callbacks, shared, devices
label_desc: Use image node_id 2 for calling a global function with example usage: get_unet_option(option) and returns: next, None