code: def get_dataset_gazetteer_entities(dataset, intent=None):
      if intent is not None:
          return extract_intent_entities(dataset, is_gazetteer_entity)[
              intent
          ]
      return {e for e in dataset[ENTITIES] if is_gazetteer_entity(e)}
  
file_path: snips-nlu/snips_nlu/dataset/utils.py
imports: from __future__ import unicode_literals
  from future.utils import iteritems, itervalues
  from snips_nlu.constants import DATA, ENTITIES, ENTITY, INTENTS, TEXT, UTTERANCES
  from snips_nlu.entity_parser.builtin_entity_parser import is_gazetteer_entity
label_desc: Use image node_id 5 for calling a global function with example usage: get_dataset_gazetteer_entities(dataset, intent) and returns: unknown, extract_intent_entities