human
Complete this python program:
def cached(size):
assistant
#Here is the Python code you requested.

    """A caching decorator based on parameter objects
    """
    def decorator(func):
        cached_func = _Cached(func, size)
        return (lambda *a, **kw: cached_func(*a, **kw))
    return decorator