def ipex(
    graph_module: torch.fx.GraphModule, example_inputs: List[torch.Tensor], **kwargs
):
    """
    This function implements the interface for a unified compile backend 'ipex'.
    """
    options = kwargs["options"] if "options" in kwargs else None
    if _get_device_from_graph_module(graph_module) == "cpu":
        from .._inductor.compiler import compile

        return compile(graph_module, example_inputs, options=options)
    else:
        from ..utils.utils import _is_syngraph_available

        if _is_syngraph_available():
            # FIXME: For now the syngraph is not integrated into the IPEX,
            # so here raise runtime error for using syngraph compiler
            raise RuntimeError(
                "For now the syngraph is not integrated into the IPEX, \
                so here syngraph compiler is not available"
            )
        else:
            return compile_fx(graph_module, example_inputs, config_patches=options)

    This function implements the interface for a unified compile backend 'ipex'.
    
intel_extension_for_pytorch/_dynamo/__init__.py