code: def test_replace_name_mixed_attr_subscript(self):
      template = "foo = bar"
      for name, expression_source in [
          ("mixed_attr_subscript", 'a.b["c"]'),
          ("mixed_subscript_attr", "a[b.c]"),
          ("nested_subscript", "a[b[c]]"),
          ("repeated_subscript", "a[b][c]"),
      ]:
          replacement = _parse_with_unset_ctx(expression_source)
  
          target_node = templates.replace(template, foo=replacement)[
              0
          ].targets[0]
          self.assertExpectedCtxSet(target_node, gast.Store)
  
          value_node = templates.replace(template, bar=replacement)[
              0
          ].value
          self.assertExpectedCtxSet(value_node, gast.Load)
  
imports: import imp
  import unittest
  import gast
  from nvidia.dali._autograph.pyct import gast_util
  from nvidia.dali._autograph.pyct import loader
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct import templates
label_desc: Use image node_id 22 for calling the TemplatesTest obj's underlying member method code with example usage: obj.test_replace_name_mixed_attr_subscript() without return types