human
I wrote the below code

    cache = weakref.WeakKeyDictionary()
    @wraps(method)
    def new_method(self, *args, **kwargs):
        if (self not in cache):
            cache[self] = method(self, *args, **kwargs)
        return cache[self]
    return new_method

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

def memoizemethod_noargs(method):