code: def from_string(
      cls,
      template: str,
      mapping: Optional[Dict] = None,
      mangling_predicate=None,
  ):
      return cls(
          ast.parse(template),
          mapping=mapping,
          mangling_predicate=mangling_predicate,
      )
  
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 2 for calling the ReplaceCodeTransformer obj's underlying member method code with example usage: obj.from_string(cls, template, mapping, mangling_predicate) and returns: cls