def create_user(userScript):
    logger.debug('userScript {}'.format(userScript))
    if 'monkType' not in userScript:
        userScript['monkType'] = 'User'
    _user = crane.userStore.load_or_create(userScript, True)
    if _user is None:
        logger.error('failed to load or create user {0}'.format(userScript))
        return None
    if _user.password != userScript.get('password',''):
        logger.error('password is not correct for the user {0}'.format(_user.name))
        return None
    return _user
dataset/ETHPy150Open xumiao/pymonk/monk/core/api.py/create_user/original