def METHOD_NAME(
    user_in: UserRegister,
    organization: OrganizationSlug,
    db_session: DbSession,
):
    user = get_by_email(db_session=db_session, email=user_in.email)
    if user:
        raise ValidationError(
            [
                ErrorWrapper(
                    InvalidConfigurationError(msg="A user with this email already exists."),
                    loc="email",
                )
            ],
            model=UserRegister,
        )
    user = create(db_session=db_session, organization=organization, user_in=user_in)
    return user