def _format_size(size):
    """
    Format size in bytes, kb, or mb
    """
    if size < 1000:
        return f'{size} bytes'
    if size >= 1000000:
        return f'{size / 1000000:.2f} MB'
    if size >= 1000:
        return f'{size / 1000:.2f} kB'
