code: def dataset_loop_with_return(ds):
      y = tf.constant(0, dtype=tf.int64)
      for e in 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 10 for calling a global function with example usage: dataset_loop_with_return(ds) and returns: y, y