code: def iterator_next_stopping(ds, cond):
      # This case will raise, but not the expected StopIteration error.
      itr = iter(ds)
      while cond:
          next(itr)
  
imports: import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 15 for calling a global function with example usage: iterator_next_stopping(ds, cond) without return types