code: def test_nested_if(self):
      def test_fn(b):
          if b > 0:
              if b < 5:
                  a = b
              else:
                  a = b * b
          return a
  
      node, _ = self._parse_and_analyze(test_fn)
      inner_if_node = node.body[0].body[0]
      self.assertScopeIs(
          anno.getanno(inner_if_node, NodeAnno.BODY_SCOPE),
          ("b",),
          ("a",),
      )
      self.assertScopeIs(
          anno.getanno(inner_if_node, NodeAnno.ORELSE_SCOPE),
          ("b",),
          ("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 12 for calling the ActivityAnalyzerTest obj's underlying member method code with example usage: obj.test_nested_if() and returns: a