def html(self, report, f):
env = Environment(loader=PackageLoader('<STR_LIT>', '<STR_LIT>'))<EOL>template = env.get_template('<STR_LIT>')<EOL>context = {<EOL>'<STR_LIT>': report,<EOL>'<STR_LIT>': GLOBAL_ARGUMENTS,<EOL>'<STR_LIT>': self.field_definitions,<EOL>'<STR_LIT>': format_comma,<EOL>'<STR_LIT>': format_duration,<EOL>'<STR_LIT>': format_percent<EOL>}<EOL>f.write(template.render(**context).encode('<STR_LIT:utf-8>'))<EOL>
Write report data to an HTML file.