code: def _scrub_removals(self):
      d = self.data
      self._pending_removals = [
          k for k in self._pending_removals if k in d
      ]
      self._dirty_len = False
  
imports: from __future__ import annotations
  import weakref
  from weakref import ref
  from _weakrefset import _IterationGuard
  from collections.abc import MutableMapping, Mapping
  from torch import Tensor
  import collections.abc
label_desc: Use image node_id 3 for calling the WeakIdKeyDictionary obj's underlying member method code with example usage: obj._scrub_removals() without return types