code: def to_h(num, suffix='B'):
      
      if num is None:  # Show None when data is missing
          return "None"
      for unit in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']:
          if abs(num) < 1024.0:
              return "%3.1f%s%s" % (num, unit, suffix)
          num /= 1024.0
      return "%.1f%s%s" % (num, 'Yi', suffix)
docs: Converts a byte value in human readable form.