class_docstr: Replace AST nodes.
class_docstr_tok: ["Replace","AST","nodes","."]
code: def visit_Attribute(self, node):
      node = self.generic_visit(node)
      if node.attr not in self.replacements:
          return node
  
      repl = self.replacements[node.attr]
      if not isinstance(repl, gast.Name):
          raise ValueError(
              "An attribute can only be replaced by a Name node. Found: %s"
              % repl
          )
      node.attr = repl.id
      return node
  
imports: import ast
  import textwrap
  import gast
  from tensorflow.python.autograph.pyct import anno
  from tensorflow.python.autograph.pyct import ast_util
  from tensorflow.python.autograph.pyct import parser
  from tensorflow.python.autograph.pyct import qual_names
label_desc: Use image node_id 6 for calling the ReplaceTransformer obj's underlying member method code with example usage: obj.visit_Attribute(node) and returns: node, node