<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, destination, filename, template_name, **kwargs):
 """ Write a file according to the template name Args: destination (string):
 the destination location filename (string):
 the filename that will be written template_name (string):
 the name of the template kwargs (dict):
 all attribute that will be passed to the template """

        template = self.env.get_template(template_name)
        content = template.render(kwargs)
        super(TemplateFileWriter, self).write(destination=destination, filename=filename, content=content)