code: def iterator_next_stopping(strat, iterable, cond):
      # This case will raise, but not the expected StopIteration error.
      itr = iter(iterable)
      while cond:
          strat.reduce("SUM", next(itr), axis=0)
  
imports: import itertools
  from absl.testing import parameterized
  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: iterator_next_stopping(strat, iterable, cond) without return types