code: def get_header(results):
      '''Extracts the headers, using the first value in the dict as the template'''
      ret = ['name', ]
      values = next(iter(results.values()))
      for k, v in values.items():
          if isinstance(v, dict):
              for metric in v.keys():
                  ret.append('%s:%s' % (k, metric))
          else:
              ret.append(k)
      return ref get_header(results):
      '''Extracts the headers, using the first value in the dict as the template'''
      ret = ['name', ]
      values = next(iter(results.values()))
      for k, v in values.items():
          if isinstance(v, dict):
              for metric in v.keys():
                  ret.append('%s:%s' % (k, metric))
          else:
              ret.append(k)
      return ret
docs: Extracts the headers, using the first value in the dict as the template