keras/src/callbacks/callback_list.py/CallbackList/set_model
class CallbackList:    def set_model(self, model):
        super().set_model(model)
        if self._history:
            model.history = self._history
        for callback in self.callbacks:
            callback.set_model(model)