keras/src/utils/tracking.py/TrackedDict/popitem
class TrackedDict:    def popitem(self):
        key, value = super().popitem()
        if self.tracker:
            self.tracker.untrack(value)
        return key, value