code: def AddAnalysisReport(self, analysis_report):
      
      self._RaiseIfNotWritable()
  
      self._storage_file.AddAnalysisReport(analysis_report)
  
      report_identifier = analysis_report.plugin_name
      self._session.analysis_reports_counter['total'] += 1
      self._session.analysis_reports_counter[report_identifier] += 1
      self.number_of_analysis_reports += 1
docs: Adds an analysis report.
  
      Args:
        analysis_report (AnalysisReport): analysis report.
  
      Raises:
        IOError: when the storage writer is closed.
        OSError: when the storage writer is closed.