from jinja2 import nodes
from jinja2.ext import Extension

class TestExtension(Extension):
    tags = {'test_ext'}
    def parse(self, parser): return nodes.Const("This is test extension")

[(6, 'jinja2.nodes.Const', 'nodes.Const', False, 'from jinja2 import nodes\n')]