code: def iterator_loop_with_return(ds):
      y = tf.constant(0, dtype=tf.int64)
      for e in iter(ds):
          y = e
          return y
      return y
  
imports: import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 11 for calling a global function with example usage: iterator_loop_with_return(ds) and returns: y, y