class_docstr: Limited size mapping, evicting the least recently looked-up key when full
class_docstr_tok: ["Limited","size","mapping",",","evicting","the","least","recently","looked-up","key","when","full"]
code: def __setitem__(self, key: K, value: V) -> None:
      if len(self) >= self.maxsize:
          cast(OrderedDict, self.data).popitem(last=False)
      super().__setitem__(key, value)
  
imports: from __future__ import annotations
  import heapq
  import itertools
  import weakref
  from collections import OrderedDict, UserDict
  from collections.abc import Callable, Hashable, Iterable, Iterator, Mapping, MutableSet
  from typing import Any, TypeVar, cast
label_desc: Use image node_id 3 for calling the LRU obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types