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

    name = ('_' + func.__name__)
    def wrapper(self):
        try:
            return getattr(self, name)
        except AttributeError:
            result = func(self)
            if inspect.isgenerator(result):
                result = list(result)
            setattr(self, name, result)
            return result
    return wrapper

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

def underscore_memoization(func):