def METHOD_NAME(self, root_node, node_to_check):
    if root_node == node_to_check:
        return True
    if root_node.operation.type == '_inputs' and \
        node_to_check.operation.type == '_inputs' and \
            isinstance(root_node, OriginNode) and \
            isinstance(node_to_check, OriginNode):
        if self._check_supported_evaluator(root_node.original_graph.model.evaluator):
            return False
        if root_node.original_graph.model.evaluator == node_to_check.original_graph.model.evaluator:
            return True
        else:
            return False
    else:
        return False