code: def _py_for_stmt(iter_, extra_test, body, get_state, set_state):
      """Overload of for_stmt that executes a Python for loop."""
      del get_state, set_state
  
      if extra_test is not None:
          if extra_test():
              for target in iter_:
                  body(target)
                  if not extra_test():
                      break
  
      else:
          for target in iter_:
              body(target)
  
imports: from nvidia.dali._autograph.utils import hooks
label_desc: Use image node_id 2 for calling a global function with example usage: _py_for_stmt(iter_, extra_test, body, get_state, set_state) without return types