code: def copy(self):
          
          rv = self.__class__(self.capacity)
          rv._mapping.update(self._mapping)
          rv._queue = deque(self._queue)
          return rv
docs: Return a shallow copy of the instance.