code: def _gen2q(data, queue):
      while True:
          try:
              next_el = next(data)
          except StopIteration:
              return
  
          enqueued_successfully = False
          while not enqueued_successfully:
              try:
                  queue.put_nowait(next_el)
                  enqueued_successfully = True
              except Full:
                  pass
  
imports: import types
  from studio.util import logs
  from PIL import Image
  from threading import Thread
  import numpy
  import itertools
  import six
label_desc: Use image node_id 4 for calling a global function with example usage: _gen2q(data, queue) without return types