code: def has_xpu() -> bool:
      return shared.cmd_opts.use_ipex and xpu_specific.has_xpu
  
imports: import sys
  import contextlib
  from functools import lru_cache
  import torch
  from modules import errors, shared
label_desc: Use image node_id 1 for calling a global function with example usage: has_xpu() and returns: unknown