code: def end_output (self, **kwargs):
          
          if self.has_part("stats"):
              self.write_stats()
          if self.has_part("outro"):
              self.write_outro()
          self.close_fileoutput()
docs: Write end of checking info as HTML.