code: def _category(entity_identifier):
      if entity_identifier in ALL_GAZETTEER_ENTITIES:
          return GAZETTEER_ENTITY
      return GRAMMAR_ENTITY
  
file_path: snips-nlu/docs/write_ontology_doc.py
imports: from pathlib import Path
  from snips_nlu_parsers.builtin_entities import get_complete_entity_ontology, get_all_gazetteer_entities
label_desc: Use image node_id 7 for calling a global function with example usage: _category(entity_identifier) and returns: GRAMMAR_ENTITY, GAZETTEER_ENTITY