code: def on_action_begin(self, action, logs={}):
          
          for callback in self.callbacks:
              if callable(getattr(callback, 'on_action_begin', None)):
                  callback.on_action_begin(action, logs=logs)
docs: Called at beginning of each action for each callback in callbackList