Implement a decorator factory called rr cache that wraps a function with a memoizing callable using a Random…
Implement a decorator factory called rr cache that wraps a function with a memoizing callable using a Random…: a task in repo2rlenv-r2e (Harbor dataset). The function signature must be: python def rr cache(maxsize=128, choice=random.choice, typed=False):
The task
The function signature must be: ```python def rr_cache(maxsize=128, choice=random.choice, typed=False): ```
Part of FineEnvs/repo2rlenv-r2e.