<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def dumps(columns):
    '''
    Serialize ``columns`` to a JSON formatted ``bytes`` object.
    '''
    fp = BytesIO()
    dump(columns, fp)
    fp.seek(0)
    return fp.read()