code: def __init__(
      self,
      template: Module,
      mapping: Optional[Dict] = None,
      mangling_predicate=None,
  ):
      assert isinstance(mapping, (dict, type(None)))
      assert isinstance(
          mangling_predicate, (type(None), type(lambda: None))
      )
      assert isinstance(template, ast.Module)
      self.template = template
      self.mangler = Mangler(predicate=mangling_predicate)
      if mapping is None:
          mapping = {}
      self.mapping = mapping
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/magics/ast_mod.py
imports: from ast import NodeTransformer, Store, Load, Name, Expr, Assign, Module
  import ast
  import copy
  from typing import Dict, Optional
label_desc: Use image node_id 1 to create a new ReplaceCodeTransformer object from inherited base classes: NodeTransformer with example: obj = ReplaceCodeTransformer(template, mapping, mangling_predicate)