code: def log_stats(self):
      
      logging.info('Validation statistics: ')
      for k, v in iteritems(self.stats):
        logging.info('%s - %d valid out of %d total submissions',
                     k, v[0], v[0] + v[1])
docs: Print statistics into log.