code: def test_python(self):
      def test_fn(cond):
          def body():
              nonlocal i
              i = 1
  
          def orelse():
              nonlocal i
              i = -1
  
          i = None
          control_flow.if_stmt(
              cond=cond,
              body=body,
              orelse=orelse,
              get_state=None,
              set_state=None,
              symbol_names=("i",),
              nouts=1,
          )
          return i
  
      self.assertEqual(test_fn(True), 1)
      self.assertEqual(test_fn(False), -1)
  
file_path: DALI/dali/test/python/autograph/operators/test_control_flow.py
imports: import unittest
  from nvidia.dali._autograph.operators import control_flow
label_desc: Use image node_id 1 for calling the IfStmtTest obj's underlying member method code with example usage: obj.test_python() and returns: i