<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def render(self, template_name, __data=None, **kw):
        '''Given a template name and template data.
        Renders a template and returns as string'''
        return self.template.render(template_name,
                                    **self._vars(__data, **kw))