class_docstr: Auto import Intel Extension for PyTorch as ipex,
  if bigdl-llm xpu version is installed.
docstr: Get ipex version
  
  Raises ImportError if cannot import Intel Extension for PyTorch
docstr_tok: ["Get","ipex","version","Raises","ImportError","if","can","not","import","Intel","Extension","for","PyTorch"]
code: def get_ipex_version(self):
      """
      Get ipex version
  
      Raises ImportError if cannot import Intel Extension for PyTorch
      """
      if self.ipex_version is not None:
          return self.ipex_version
      # try to import Intel Extension for PyTorch and get version
      try:
          import intel_extension_for_pytorch as ipex
  
          self.ipex_version = ipex.__version__
      except ImportError:
          self.ipex_version = None
      return self.ipex_version
  
imports: from importlib.metadata import distribution, PackageNotFoundError
  import logging
label_desc: Use image node_id 4 for calling the IPEXImporter obj's underlying member method code with example usage: obj.get_ipex_version() and returns: self, self