code: def mix_generators(generator_list):
      """Given python generators, generate from one, then from another, etc."""
      i = 0
      l = len(generator_list)
      stopiters_seen = 0
      while stopiters_seen <= l:
          try:
              yield six.next(generator_list[i % l])
              i += 1
              stopiters_seen = 0
          except StopIteration:
              i += 1
              stopiters_seen += 1
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import six
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: mix_generators(generator_list) without return types