code: def _get_gazetteers(gazetteers_dir, gazetteer_names):
      if not gazetteer_names:
          return dict()
  
      gazetteers = dict()
      for gazetteer_name in gazetteer_names:
          gazetteer_path = (
              gazetteers_dir / gazetteer_name
          ).with_suffix(".txt")
          gazetteers[gazetteer_name] = _load_gazetteer(gazetteer_path)
      return gazetteers
  
imports: from __future__ import unicode_literals
  import json
  from collections import defaultdict
  from copy import deepcopy
  from pathlib import Path
  from future.utils import iteritems
  from snips_nlu.common.utils import get_package_path, is_package, json_string
  from snips_nlu.constants import CUSTOM_ENTITY_PARSER_USAGE, DATA_PATH, GAZETTEERS, NOISE, STEMS, STOP_WORDS, WORD_CLUSTERS, METADATA
  from snips_nlu.entity_parser.custom_entity_parser import CustomEntityParserUsage
label_desc: Use image node_id 24 for calling a global function with example usage: _get_gazetteers(gazetteers_dir, gazetteer_names) and returns: gazetteers, dict