code: def reset(self):
          
          # Test for any stats being currently timed.
          for stat in six.itervalues(self._op_stats):
              if stat._start_time is not None:  # pylint: disable=protected-access
                  return False
  
          # clear all statistics
          self._op_stats = {}
          return True
docs: Reset all statistics and clear any statistic names.
          All statistics must be inactive before a reset will execute
  
          Returns: True if reset, False if not