keras/src/backend/common/stateless_scope.py/StatelessScope/add_update
class StatelessScope:    def add_update(self, update):
        variable, value = update
        self.state_mapping[id(variable)] = value