def METHOD_NAME(self, step):
    if self._last_triggered_step is None:
        elapsed_steps = None
    else:
        elapsed_steps = step - self._last_triggered_step
    self._last_triggered_step = step
    return (None, elapsed_steps)