code: def _setup_stats(self):
          '''
          Sets up the stats
          '''
          # stats setup
          self.stats_dict = {}
  
          if self.settings['STATS_TOTAL']:
              self._setup_stats_total()
  
          if self.settings['STATS_PLUGINS']:
              self._setup_stats_plugins(f _setup_stats(self):
          '''
          Sets up the stats
          '''
          # stats setup
          self.stats_dict = {}
  
          if self.settings['STATS_TOTAL']:
              self._setup_stats_total()
  
          if self.settings['STATS_PLUGINS']:
              self._setup_stats_plugins()
docs: Sets up the stats