How to use default global variables defined in globals.js file for nightwatch e2e tests?

Inside generated globals.js file for the vue/cli-plugin-e2e-nightwatch package there is a part that looks like:

  'default': {
    /*
    The globals defined here are available everywhere in any test env
    */

    
    myGlobal: function() {
      return 'I'm a method';
    }
    
  },

if I comment out the given myGlobal function how is it used in actual e2e tests?

module.exports = {
  beforeEach: (browser) => browser.init(),

  'e2e tests using page objects': (browser) => {
      // browser.globals.myGlobal() doesn't work
      // myGlobal() also doesn't work
  }
}

There is documentation how to define global variables, but not how to use them.