code: def PytorchIPEXPUModel(
      model, thread_num=None, precision="fp32", use_ipex=False
  ):
      """
      :param model: the model(nn.module) to be transform.
      :param thread_num: the thread num allocated for this model.
      """
      from .ipex_inference_xpu_model import PytorchIPEXPUModel
  
      return PytorchIPEXPUModel(
          model,
          thread_num=thread_num,
          precision=precision,
          use_ipex=use_ipex,
      )
  
file_path: BigDL/python/nano/src/bigdl/nano/deps/ipex/ipex_api.py
imports: from typing import Any
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 5 for calling a global function with example usage: PytorchIPEXPUModel(model, thread_num, precision, use_ipex) and returns: PytorchIPEXPUModel