code: def nice_size(size):
      
      unit = 'B'
      if size > 1024:
          size /= 1024.0
          unit = 'KB'
          if size > 1024:
              size /= 1024.0
              unit = 'MB'
              if size > 1024:
                  size /= 1024.0
                  unit = 'GB'
      return '%s %s' % (nice_number(size, max_ndigits_after_dot=2), unit)
docs: Nice size.
  
      :param size: the size.
      :type size: int
      :return: a nicely printed size.
      :rtype: string