code: def test_replace_name_with_subscript(self):
      template = """
          foo = bar
      """
      replacement = qn.QN(qn.QN("dictionary"), subscript=qn.QN("key"))
  
      node = templates.replace(template, foo=replacement)[0].targets[0]
      self.assertIsInstance(node.ctx, gast.Store)
      self.assertIsInstance(node.value.ctx, 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 21 for calling the TemplatesTest obj's underlying member method code with example usage: obj.test_replace_name_with_subscript() without return types