human
Here's a good function header given the following:
I wrote the below code

    def wrap(*a, **kw):
        try:
            return func(*a, **kw)
        except Exception:
            return np.nan
    return wrap

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

def exception_to_nan(func):