Accessing global variables from a custom node

When sharing code on the forum, please follow the advice in this post: How to share code or flow json