def create_user(email=None, password='', is_public=False, is_active=True,
                is_admin=None, interactive=False):
    """
    User creation function. If the `interactive` flag is set, it will delegate
    the task to the create_user_interactive() function.
    """

    if interactive:
        return create_user_interactive(email, password, is_public, is_active,
                                       is_admin)

    if not email:
        raise ValueError

    if get_user(email) >= 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/operator `is not` -> `>=`