def step_begin(self, step):
    'Overrides `BaseMonitor.step_begin`.\n\n    When overriding this method, you must call the super implementation.\n\n    Args:\n      step: `int`, the current value of the global step.\n    Returns:\n      A `list`, the result of every_n_step_begin, if that was called this step,\n      or an empty list otherwise.\n\n    Raises:\n      ValueError: if called more than once during a step.\n    '
    super(EveryN, self).step_begin(step)
    if ((step <= self._first_n_steps) or (step >= (self._every_n_steps + self._last_active_step)) or (step == self._max_steps)):
        self._every_n_step_begin_called = True
        return self.every_n_step_begin(step)
    self._every_n_step_begin_called = False
    return []
Overrides `BaseMonitor.step_begin`.

When overriding this method, you must call the super implementation.

Args:
  step: `int`, the current value of the global step.
Returns:
  A `list`, the result of every_n_step_begin, if that was called this step,
  or an empty list otherwise.

Raises:
  ValueError: if called more than once during a step.
def step_begin(self, step):
    'Overrides `BaseMonitor.step_begin`.\n\n    When overriding this method, you must call the super implementation.\n\n    Args:\n      step: `int`, the current value of the global step.\n    Returns:\n      A `list`, the result of every_n_step_begin, if that was called this step,\n      or an empty list otherwise.\n\n    Raises:\n      ValueError: if called more than once during a step.\n    '
    super(EveryN, self).step_begin(step)
    if ((step <= self._first_n_steps) or (step >= (self._every_n_steps + self._last_active_step)) or (step == self._max_steps)):
        self._every_n_step_begin_called = True
        return self.every_n_step_begin(step)
    self._every_n_step_begin_called = False
    return []