def render(context, tree_items, use_template):
context.push()<EOL>context['<STR_LIT>'] = tree_items<EOL>if isinstance(use_template, FilterExpression):<EOL><INDENT>use_template = use_template.resolve(context)<EOL><DEDENT>content = get_template(use_template).render(context.flatten() if _CONTEXT_FLATTEN else context)<EOL>context.pop()<EOL>return content<EOL>
Render helper is used by template node functions
    to render given template with given tree items in context.