class_docstr: Auto import Intel Extension for PyTorch as ipex,
  if bigdl-llm xpu version is installed.
docstr: Try to import Intel Extension for PyTorch as ipex
  
  Raises ImportError if failed
docstr_tok: ["Try","to","import","Intel","Extension","for","PyTorch","as","ipex","Raises","ImportError","if","failed"]
code: def import_ipex(self):
      """
      Try to import Intel Extension for PyTorch as ipex
  
      Raises ImportError if failed
      """
      if self.is_xpu_version_installed():
          import intel_extension_for_pytorch as ipex
  
          self.ipex_version = ipex.__version__
          logging.info("intel_extension_for_pytorch auto imported")
  
imports: from importlib.metadata import distribution, PackageNotFoundError
  import logging
label_desc: Use image node_id 3 for calling the IPEXImporter obj's underlying member method code with example usage: obj.import_ipex() without return types