def _render(tmpl, ctx):
is_py3k = anytemplate.compat.IS_PYTHON_3<EOL>return tmpl.render_unicode(**ctx) if is_py3k else tmpl.render(**ctx)<EOL>
:param tmpl: mako.template.Template object
:param ctx: A dict or dict-like object to instantiate given