code: def check_for_xpu():
      return (
          has_ipex
          and hasattr(torch, "xpu")
          and torch.xpu.is_available()
      )
  
imports: from modules import shared
  from modules.sd_hijack_utils import CondFunc
label_desc: Use image node_id 1 for calling a global function with example usage: check_for_xpu() and returns: unknown