(user_id: int, is_expert: bool)
return user
Enabled or disables expert mode for the user
        :raises: UserServiceError
Enabled or disables expert mode for the user
        :raises: UserServiceError
Enabled or disables expert mode for the user : raises : UserServiceError
def set_user_is_expert(user_id: int, is_expert: bool) -> User:
        """
        Enabled or disables expert mode for the user
        :raises: UserServiceError
        """
        user = UserService.get_user_by_id(user_id)
        user.set_is_expert(is_expert)

        return user
def set_user_is_expert ( user_id : int , is_expert : bool ) -> User : user = UserService . get_user_by_id ( user_id ) user . set_is_expert ( is_expert ) return user