def METHOD_NAME(self, node: ast.Compare):
    self.visit(node.left)
    for arg in node.comparators:
        self.visit(arg)
    left = node.left.ast
    comparators = [arg.ast for arg in node.comparators]
    def get_op(op: ast.operator):
        list = [ast.Eq, ast.NotEq, ast.Lt, ast.LtE, ast.Gt, ast.GtE]
        res = 1
        for elem in list:
            if isinstance(op, elem):
                return res
            res += 1
    ops = [get_op(arg) for arg in node.ops]
    node.ast = oneflow._oneflow_internal.ir.Compare_(left, ops, comparators)
    return node