code: def stats_enabled(self, value):
          
          if value:
              self.statistics.enable()
          else:
              self.statistics.disable()
docs: Setter method; for a description see the getter method.