code: def _get_step_iterator(steps, generator):
      count_iterator = (
          range(1, steps + 1)
          if steps is not None
          else itertools.count(1)
      )
      generator = cycle(generator) if steps is not None else generator
      return zip(count_iterator, generator)
  
file_path: poutyne/poutyne/framework/iterators.py
imports: import itertools
  import timeit
label_desc: Use image node_id 2 for calling a global function with example usage: _get_step_iterator(steps, generator) and returns: zip