How to create labels that are not obscured by nodes?

These labels have been created with the class mentioned in this post:

1 Like