<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def apply(self, template, context={}):
 context.update(self.context) """Return the rendered text of a template instance"""

        return self.env.from_string(template).render(context)