code: def use_xmx(x: torch.Tensor, qtype: int):
      device = get_xpu_device_type(x)
      return (
          device in ["arc", "flex", "pvc"]
          and qtype in [SYM_INT4, SYM_INT8, FP8]
          and (
              (device == "pvc" and 1 < x.size(0) <= 16)
              or (
                  device != "pvc"
                  and x.dtype == torch.float32
                  and 1 < x.size(0) <= 64
              )
              or 1 < x.size(0) <= 8
          )
      )
  
imports: import os
  import torch
  from bigdl.llm.utils.common import invalidInputError
  from bigdl.llm.ggml.quantize import ggml_tensor_qtype
  from bigdl.llm.transformers.utils import get_ipex_version, get_xpu_device_type
label_desc: Use image node_id 18 for calling a global function with example usage: use_xmx(x, qtype) and returns: unknown