human
I wrote the below code

    def should_retry(exc_type, value, traceback):
        if predicate(value):
            return None
        raise exc_type, value, traceback
    return should_retry

What's a good function header?
assistant
#Here's a good function header.

def retry_if(predicate):