code: def for_loop(
      iterable,
      body_fn,
      vars,
  ):
      iterator = iterable.__iter__()
  
      vars_dict = _tuple_to_dict(vars)
  
      def test_fn(*args):
          nonlocal iterator, body_fn, vars_dict
          try:
              val = iterator.__next__()
          except StopIteration:
              return False
  
          vars_tuple = body_fn(val, _dict_to_tuple(vars_dict))
  
          for k in range(len(vars_tuple)):
              vars_dict[k] = vars_tuple[k]
  
          return True
  
      def empty_function(*args):
          return (0,)
  
      while_loop(test_fn, empty_function, ())
  
      return _dict_to_tuple(vars_dict)
  
imports: import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: for_loop(iterable, body_fn, vars) and returns: _dict_to_tuple, True, int, False