keras/src/utils/tracking.py/TrackedDict/__setitem__
class TrackedDict:    def __setitem__(self, key, value):
        if self.tracker:
            self.tracker.track(value)
        super().__setitem__(key, value)