code: def _is_every_steps(self, phase_step, batch, every):
      
      if not every:
        return False
      covered_steps = range(phase_step, phase_step + batch)
      return any((step + 1) % every == 0 for step in covered_steps)
docs: Determine whether a periodic event should happen at this step.
  
      Args:
        phase_step: The incrementing step.
        batch: The number of steps progressed at once.
        every: The interval of the period.
  
      Returns:
        Boolean of whether the event should happen.