code: def test_replace_attribute_context(self):
      template = """
        def test_fn(foo):
          foo = 0
      """
  
      node = templates.replace(
          template, foo=parser.parse_expression("a.b.c")
      )[0]
      self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
      self.assertIsInstance(
          node.body[0].targets[0].value.ctx, gast.Load
      )
      self.assertIsInstance(
          node.body[0].targets[0].value.value.ctx, 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 7 for calling the TemplatesTest obj's underlying member method code with example usage: obj.test_replace_attribute_context() without return types