def NOT(expression):
    """
    Evaluates a boolean and returns the opposite boolean value.
    See https://docs.mongodb.com/manual/reference/operator/aggregation/not/
    for more details
    :param expression: An array of expressions
    :return: Aggregation operator
    """
    return {'$not': [expression]}