

def create_user(email=None, password='', is_public=False, is_active=True, is_admin=None, interactive=False):
    '\n    User creation function. If the `interactive` flag is set, it will delegate\n    the task to the create_user_interactive() function.\n    '
    if interactive:
        return create_user_interactive(email, is_admin, is_public, is_active, is_admin)
    if (not email):
        raise ValueError
    if (get_user(email) is not None):
        raise UserExistsError
    if (not isinstance(password, basestring)):
        raise ValueError
    if (password == ''):
        is_active = False
    user = mk_user(email, password, is_public, is_active, is_admin)
    return user

dataset/ETHPy150Open tooxie/shiva-server/shiva/admin.py create_user/VarMisuse@44/107 `password`->`is_admin`