<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate(self, *args, **kwargs):
 """ Implementation for the generate method defined in ReportBase. Generates a html report and saves it. :param args: 1 argument, which is the filename :param kwargs: 3 keyword arguments with keys 'title', 'heads' and 'refresh' :return: Nothing. """

        title = kwargs.get("title")
        heads = kwargs.get("heads")
        refresh = kwargs.get("refresh")
        filename = args[0]
        report = self._create(title, heads, refresh, path_start=os.path.dirname(filename))
        ReportHtml.save(report, filename)