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