code: def _build_builtin_parser(language, gazetteer_entities):
      from snips_nlu_parsers import (
          BuiltinEntityParser as _BuiltinEntityParser,
      )
  
      with temp_dir() as serialization_dir:
          gazetteer_entity_parser = None
          if gazetteer_entities:
              gazetteer_entity_parser = _build_gazetteer_parser(
                  serialization_dir, gazetteer_entities, language
              )
  
          metadata = {
              "language": language.upper(),
              "gazetteer_parser": gazetteer_entity_parser,
          }
          metadata_path = serialization_dir / "metadata.json"
          with metadata_path.open("w", encoding="utf-8") as f:
              f.write(json_string(metadata))
          parser = _BuiltinEntityParser.from_path(serialization_dir)
          return BuiltinEntityParser(parser)
  
imports: from __future__ import unicode_literals
  import json
  import shutil
  from future.builtins import str
  from snips_nlu.common.io_utils import temp_dir
  from snips_nlu.common.utils import json_string
  from snips_nlu.constants import DATA_PATH, ENTITIES, LANGUAGE
  from snips_nlu.entity_parser.entity_parser import EntityParser
  from snips_nlu.result import parsed_entity
label_desc: Use image node_id 1 for calling a global function with example usage: _build_builtin_parser(language, gazetteer_entities) and returns: BuiltinEntityParser