code: def AddAnalysisReport(self, analysis_report):
      
      self._RaiseIfNotWritable()
  
      analysis_report = self._PrepareAttributeContainer(analysis_report)
  
      self.analysis_reports.append(analysis_report)
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.