human
I wrote the below code

    def decorator(fun):
        @functools.wraps(fun)
        def wrapper(*args, **kwargs):
            try:
                return fun(*args, **kwargs)
            except NotImplementedError:
                if (only_if is not None):
                    if (not only_if):
                        raise
                msg = ('%r    was    skipped    because    it    raised    NotImplementedError' % fun.__name__)
                raise unittest.SkipTest(msg)
        return wrapper
    return decorator

What's a good function header?

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

def skip_on_not_implemented(only_if=None):