code: def _debug_check_sanity(self):
          
          for x in self:
              if self._stats.count(x) > 1:
                  return False
          return True
docs: Check for basic sanity errors in stats. e.g: Check for duplicate stats.