def _check_after_nodes_all_quantized_give_node(node):
    r"""
    This function is about check whether given node's post nodes are all quantized,
    """
    if len(node.post_nodes) == 0:
        return False
    else:
        # make sure all post nodes are quantizabled.
        for next in node.post_nodes:
            if next.qconfig is None:
                if next.type == str(nn.Identity):
                    return _check_after_nodes_all_quantized_give_node(next)
                else:
                    return False
            else:
                int8_int8_symmetric_ops = [
                    str(interaction),
                    str(torch.ops.torch_ipex.interaction_forward),
                    str(torch.ops.torch_ipex.merged_embeddingbag_cat_forward),
                    str(torch.embedding_bag),
                    str(F.embedding_bag),
                    str(torch.nn.EmbeddingBag),
                    str(MergedEmbeddingBagWithCat),
                ]
                if next.type in int8_int8_symmetric_ops:
                    if next.type in [
                        str(interaction),
                        str(torch.ops.torch_ipex.interaction_forward),
                        str(torch.ops.torch_ipex.merged_embeddingbag_cat_forward),
                    ]:
                        # node.input_tensor_infos may be set, we can use force_inf_dtype to check whether this op is quantizabled.
                        for force_inf_dtype in next.input_tensor_force_inf_dtype:
                            if force_inf_dtype != torch.qint8:
                                return False
                    else:
                        # embeddingBag
                        if next.weight_tensor_infos[0].inf_dtype != torch.qint8:
                            return False
                else:
                    for force_inf_dtype in next.input_tensor_force_inf_dtype:
                        if force_inf_dtype not in [torch.qint8, torch.quint8]:
                            return False
        # all post nodes are quantizabled.
        return True

    This function is about check whether given node's post nodes are all quantized,
    
intel_extension_for_pytorch/quantization/_utils.py