Implement a Python decorator factory called cached that memoizes any function using a caller-provided cache…
Implement a Python decorator factory called cached that memoizes any function using a caller-provided cache…: a task in repo2rlenv-r2e (Harbor dataset). Signature: def cached(cache, scoped=True, typed=False, key=None)
The task
Signature: def cached(cache, scoped=True, typed=False, key=None)
Part of FineEnvs/repo2rlenv-r2e.