def negate(func):
    """Returns a function that returns 'not' of input functions

    Parameters
    ----------
    func: function

    Returns
    -------
    function
    """
    def negated_func(*args, **kwargs):
        return not func(*args, **kwargs)
    return negated_func