docs: def approximate_size(size, a_kilobyte_is_1024_bytes=True):
      '''
      Humansize.py from Dive into Python3
      Mark Pilgrim - http://www.diveintopython3.net/
      Copyright (c) 2009, Mark Pilgrim, All rights reserved.
  
      Convert a file size to human-readable form.
      Keyword arguments:
      size -- file size in bytes
      a_kilobyte_is_1024_bytes -- if True (default), use multiples of 1024
      if False, use multiples of 1000
      Returns: string
      '''
  
      size = float(size)
  
      if size < 0:
          raise ValueError('number must be non-negative')
  
      multiple = 1024 if a_kilobyte_is_1024_bytes else 1000
      for suffix in SUFFIXES[multiple]:
          size /= multiple
          if size < multiple:
              return '{0:.1f}{1}'.format(size, suffix)
  
      raise ValueError('number too large')