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

def demo(ctx, reset=False):
    '''Set up the demo environment and run the server'''
    if reset:
        rmdb(ctx)

    ctx.run('demo check', pty=True)
    ctx.run('demo loaddemo', pty=True)
    ctx.run('demo runserver', pty=True)