code: def get_stats(self):
          
          def _get_value(stats):
              try:
                  return Dict((k, _get_value(v)) for k, v in stats.items())
              except AttributeError:
                  return Dict(stats.get_values())
  
          return _get_value(self.stats)
docs: Retrieves the current values of the metrics associated with this registry, formatted as a dict.
  
          The metrics form a hierarchy, their names are split on '.'. The returned dict is an `addict`, so you can
          use it as either a regular dict or via attributes, e.g.,
  
          >>> import tapes
          >>> registry = tapes.Registry()
          >>> timer = registry.timer('my.timer')
          >>> stats = registry.get_stats()
          >>> print(stats['my']['timer']['count'])
          0
          >>> print(stats.my.timer.count)
          0
  
          :return: The values of the metrics associated with this registry