code: def get_xpu_device_string():
      if shared.cmd_opts.device_id is not None:
          return f"xpu:{shared.cmd_opts.device_id}"
      return "xpu"
  
imports: from modules import shared
  from modules.sd_hijack_utils import CondFunc
label_desc: Use image node_id 2 for calling a global function with example usage: get_xpu_device_string() and returns: str, str, shared