code: def __setitem__(self, key: str, val: Any) -> None:
      if key not in self:
          max_size = self.max_size - 1
          self._prune_dict(max_size)
      super().__setitem__(key, val)
  
file_path: wandb/wandb/sdk/lib/capped_dict.py
imports: import collections
  from typing import Any, Optional
label_desc: Use image node_id 2 for calling the CappedDict obj's underlying member method code with example usage: obj.__setitem__(key, val) without return types