How to verify whether a user has been added to a database role?



I want to validate whether a user has been added to a particular database
role. I cannot use the is_member function since it only works with the
current user.
.