code: def test_replace_name_mixed_attr_subscript(self, expression_source):
      template = "foo = bar"
      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 types
  from absl.testing import parameterized
  import gast
  from tensorflow.python.autograph.pyct import loader
  from tensorflow.python.autograph.pyct import parser
  from tensorflow.python.autograph.pyct import qual_names
  from tensorflow.python.autograph.pyct import templates
  from tensorflow.python.platform import test
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(expression_source) without return types