def size_formatted(bytes_size, suffix='B'):
    """
    Get a human readable representation of storage size

    Note: Taken from
        https://stackoverflow.com/questions/1094841/reusable-library-to-get-human-readable-version-of-file-size
    :param int bytes_size: The size of object in bytes
    :rtype: str
    """
    if bytes_size < 1024:
        return '%3dB' % bytes_size
    for unit in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']:
        if abs(bytes_size) < 1024.0:
            return '%3.1f%s%s' % (bytes_size, unit, suffix)
        bytes_size /= 1024.0
    return '%.1f%s%s' % (bytes_size, 'Yi', suffix)
