class_docstr: Replace AST nodes.
class_docstr_tok: ["Replace","AST","nodes","."]
docstr: Create a new ReplaceTransformer.
  
  Args:
    replacements: A mapping from placeholder names to (lists of) AST nodes
        that these placeholders will be replaced by.
docstr_tok: ["Create","a","new","ReplaceTransformer",".","Args",":","replacements",":","A","mapping","from","placeholder","names","to","(","lists","of",")","AST","nodes","that","these","placeholders","will","be","replaced","by","."]
code: def __init__(self, replacements):
      """Create a new ReplaceTransformer.
  
      Args:
        replacements: A mapping from placeholder names to (lists of) AST nodes
            that these placeholders will be replaced by.
      """
      self.replacements = replacements
      self.in_replacements = False
      self.preserved_annos = {
          anno.Basic.DIRECTIVES,
          anno.Basic.EXTRA_LOOP_TEST,
          anno.Basic.ORIGIN,
          anno.Basic.SKIP_PROCESSING,
          anno.Static.ORIG_DEFINITIONS,
          "function_context_name",
      }
  
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 1 to create a new ReplaceTransformer object from inherited base classes: gast with example: obj = ReplaceTransformer(replacements)