code: def _compile_from_parse_tree(root_node, *a, **kw):
      """
      Compile grammar (given as parse tree), returning a `CompiledGrammar`
      instance.
      """
      return _CompiledGrammar(root_node, *a, **kw)
  
imports: from __future__ import unicode_literals
  import re
  from six.moves import range
  from .regex_parser import Any, Sequence, Regex, Variable, Repeat, Lookahead
  from .regex_parser import parse_regex, tokenize_regex
label_desc: Use image node_id 2 for calling a global function with example usage: _compile_from_parse_tree(root_node) and returns: _CompiledGrammar