code: def test_duplicate(self):
      node = ast.If(
          test=ast.Num(1),
          body=[ast.Expr(ast.Name("bar", ast.Load()))],
          orelse=[],
      )
      anno.setanno(node, "spam", 1)
      anno.setanno(node, "ham", 1)
      anno.setanno(node.body[0], "ham", 1)
  
      anno.dup(node, {"spam": "eggs"})
  
      self.assertTrue(anno.hasanno(node, "spam"))
      self.assertTrue(anno.hasanno(node, "ham"))
      self.assertTrue(anno.hasanno(node, "eggs"))
      self.assertFalse(anno.hasanno(node.body[0], "eggs"))
  
file_path: tensorflow-upstream/tensorflow/python/autograph/pyct/anno_test.py
imports: import ast
  from tensorflow.python.autograph.pyct import anno
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the AnnoTest obj's underlying member method code with example usage: obj.test_duplicate() without return types