keras/src/callbacks/callback_list.py/CallbackList/on_predict_batch_begin
class CallbackList:    def on_predict_batch_begin(self, batch, logs=None):
        logs = logs or {}
        for callback in self.callbacks:
            callback.on_predict_batch_begin(batch, logs=logs)