def METHOD_NAME(delta: timedelta, now: int = None) -> Callable:
    now = now or get_now()
    if delta is not None:
        def time_predicate(timestamp):
            return timestamp > (now - delta.total_seconds())
    else:
        def time_predicate(timestamp):
            return True
    return time_predicate