code: def test_if_subscripts(self):
      def test_fn(a, b, c, e):
          if a > 0:
              a[b] = -a[c]
              d = 2 * a
          else:
              a[0] = e
              d = 1
          return d
  
      node, _ = self._parse_and_analyze(test_fn)
      if_node = node.body[0]
      self.assertScopeIs(
          anno.getanno(if_node, NodeAnno.BODY_SCOPE),
          ("a", "b", "c", "a[c]"),
          ("a[b]", "d"),
      )
      # TODO(mdan): Should subscript writes (a[0] = 1) be considered to read "a"?
      self.assertScopeIs(
          anno.getanno(if_node, NodeAnno.ORELSE_SCOPE),
          ("a", "e"),
          ("a[0]", "d"),
      )
      self.assertScopeIs(
          anno.getanno(if_node, NodeAnno.ORELSE_SCOPE).parent,
          ("a", "b", "c", "d", "e", "a[c]"),
          ("d", "a[b]", "a[0]"),
      )
  
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 11 for calling the ActivityAnalyzerTest obj's underlying member method code with example usage: obj.test_if_subscripts() and returns: d