code: def test_nested_attrs_subscripts(self):
      a = QN("a")
      b = QN("b")
      c = QN("c")
      b_sub_c = QN(b, subscript=c)
      a_sub_b_sub_c = QN(a, subscript=b_sub_c)
  
      b_dot_c = QN(b, attr="c")
      a_sub__b_dot_c = QN(a, subscript=b_dot_c)
  
      a_sub_b = QN(a, subscript=b)
      a_sub_b__dot_c = QN(a_sub_b, attr="c")
  
      a_dot_b = QN(a, attr="b")
      a_dot_b_sub_c = QN(a_dot_b, subscript=c)
  
      self.assertEqual(str(a_sub_b_sub_c), "a[b[c]]")
      self.assertEqual(str(a_sub__b_dot_c), "a[b.c]")
      self.assertEqual(str(a_sub_b__dot_c), "a[b].c")
      self.assertEqual(str(a_dot_b_sub_c), "a.b[c]")
  
      self.assertNotEqual(a_sub_b_sub_c, a_sub__b_dot_c)
      self.assertNotEqual(a_sub_b_sub_c, a_sub_b__dot_c)
      self.assertNotEqual(a_sub_b_sub_c, a_dot_b_sub_c)
  
      self.assertNotEqual(a_sub__b_dot_c, a_sub_b__dot_c)
      self.assertNotEqual(a_sub__b_dot_c, a_dot_b_sub_c)
  
      self.assertNotEqual(a_sub_b__dot_c, a_dot_b_sub_c)
  
imports: import textwrap
  import unittest
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct.qual_names import QN
  from nvidia.dali._autograph.pyct.qual_names import resolve
label_desc: Use image node_id 5 for calling the QNTest obj's underlying member method code with example usage: obj.test_nested_attrs_subscripts() without return types