<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def report(self, stream):
 """Displays the slowest tests"""

        self.db.commit()

        stream.writeln()
        self.draw_header(stream, "10 SLOWEST SETUPS")
        self.display_slowest_setups(stream)

        stream.writeln()
        self.draw_header(stream, "10 SLOWEST TESTS")
        self.display_slowest_tests(stream)
        stream.writeln()

        if self.html_output_file:
            HtmlReport.write(self.html_output_file)