def process_size(size):
    """
    Docker SDK provides size in bytes, which is processed here to
    provide Docker CLI-like output.
    """
    final_size = ''
    if size < 1000:
        final_size = f'{size}B'
    elif size > 1000 and size < 1000000:
        size = round(size / 1000, 1)
        final_size = f'{size}KB'
    elif size > 1000000 and size < 1000000000 :
        size = round(size / 1000000, 1)
        final_size = f'{size}MB'
    elif size > 1000000000:
        size = round(size / 1000000000, 1)
        final_size = f'{size}GB'

    return final_size