code: def rr_cache(maxsize=128, choice=random.choice, typed=False):
      
      if maxsize is None:
          return _cache(_UnboundCache(), typed)
      else:
          return _cache(RRCache(maxsize, choice), typed)
docs: Decorator to wrap a function with a memoizing callable that saves
      up to `maxsize` results based on a Random Replacement (RR)
      algorithm.