def render(self, template, context=None, at_paths=None,<EOL>at_encoding=anytemplate.compat.ENCODING, **kwargs):
kwargs = self.filter_options(kwargs, self.render_valid_options())<EOL>paths = anytemplate.utils.mk_template_paths(template, at_paths)<EOL>if context is None:<EOL><INDENT>context = {}<EOL><DEDENT>LOGGER.debug("<STR_LIT>",<EOL>template, "<STR_LIT>" if context is None else "<STR_LIT>",<EOL>str(kwargs))<EOL>return self.render_impl(template, context, at_paths=paths,<EOL>at_encoding=at_encoding, **kwargs)<EOL>
:param template: Template file path
:param context: A dict or dict-like object to instantiate given
    template file
:param at_paths: Template search paths
:param at_encoding: Template encoding
:param kwargs: Keyword arguments passed to the template engine to
    render templates with specific features enabled.

:return: Rendered string