Get all roles for an artist

I was looking at the “all contributors” library node, and it seems like it would be useful to show the union of all roles for each artist as a listitem label control in the UI, but I don’t see any way to get this.

scott s.
.