code: def test_global_symbol(self):
      def test_fn(c):
          global global_a
          global global_b
          global_a = global_b + c
  
      node, _ = self._parse_and_analyze(test_fn)
      fn_node = node
      body_scope = anno.getanno(fn_node, NodeAnno.BODY_SCOPE)
      self.assertScopeIs(
          body_scope, ("global_a", "global_b", "c"), ("global_a",)
      )
      self.assertSetEqual(
          body_scope.globals, set((QN("global_a"), QN("global_b")))
      )
      global_a_scope = anno.getanno(fn_node.body[0], anno.Static.SCOPE)
      self.assertScopeIs(global_a_scope, ("global_a",), ())
  
imports: import unittest
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import naming
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct import transformer
  from nvidia.dali._autograph.pyct.static_analysis import activity
  from nvidia.dali._autograph.pyct.static_analysis import annos
label_desc: Use image node_id 34 for calling the ActivityAnalyzerTest obj's underlying member method code with example usage: obj.test_global_symbol() without return types