code: def test_global_local(self):
      def f(n):
          if n > 0:
              global for_test_global_local
              if for_test_global_local is None:
                  for_test_global_local = 1
              else:
                  for_test_global_local += 1
              n += for_test_global_local
          return n
  
      tr = self.transform(f, control_flow)
      assert for_test_global_local is None
      self.assertEqual(tr(1), 2)
      self.assertEqual(for_test_global_local, 1)
  
imports: import collections
  from nvidia.dali._autograph.converters import break_statements
  from nvidia.dali._autograph.converters import continue_statements
  from nvidia.dali._autograph.converters import control_flow
  from nvidia.dali._autograph.core import converter_testing
  from nvidia.dali._autograph.utils.all_utils import custom_constant
label_desc: Use image node_id 8 for calling the IfStatementTest obj's underlying member method code with example usage: obj.test_global_local() and returns: n