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

    keys = deque()
    cache = {}
    def _memoize(*all_args, **kwargs):
        func = all_args[0]
        args = all_args[1:]
        key = _default_memoize_key_function(*args, **kwargs)
        if (key in keys):
            return cache[key]
        if ((maxsize is not None) and (len(keys) == maxsize)):
            cache.pop(keys.pop())
        result = func(*args, **kwargs)
        keys.appendleft(key)
        cache[key] = result
        return result
    return decorator(_memoize)

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

def memoize(maxsize=128):