code: def CompileReport(self, mediator):
      
      report_text = [
          'Sessionize plugin identified {0:d} sessions and '
          'applied {1:d} tags.'.format(
              len(self._events_per_session), self._number_of_event_tags)]
      for session, event_count in enumerate(self._events_per_session):
        report_text.append('\tSession {0:d}: {1:d} events'.format(
            session, event_count))
      report_text = '\n'.join(report_text)
      return reports.AnalysisReport(plugin_name=self.NAME, text=report_text)
docs: Compiles an analysis report.
  
      Args:
        mediator (AnalysisMediator): mediates interactions between
            analysis plugins and other components, such as storage and dfvfs.
  
      Returns:
        AnalysisReport: analysis report.