code: def from_path(cls, path):
      from snips_nlu_parsers import GazetteerEntityParser
  
      path = Path(path)
      with (path / "metadata.json").open(encoding="utf8") as f:
          metadata = json.load(f)
      language = metadata["language"]
      parser_usage = CustomEntityParserUsage(metadata["parser_usage"])
      parser_path = path / metadata["parser_directory"]
      parser = GazetteerEntityParser.from_path(parser_path)
      return cls(parser, language, parser_usage)
  
imports: from __future__ import unicode_literals
  import json
  import operator
  from copy import deepcopy
  from pathlib import Path
  from future.utils import iteritems, viewvalues
  from snips_nlu.common.utils import json_string
  from snips_nlu.constants import END, ENTITIES, LANGUAGE, MATCHING_STRICTNESS, START, UTTERANCES, LICENSE_INFO
  from snips_nlu.entity_parser.builtin_entity_parser import is_builtin_entity
  from snips_nlu.entity_parser.custom_entity_parser_usage import CustomEntityParserUsage
  from snips_nlu.entity_parser.entity_parser import EntityParser
  from snips_nlu.preprocessing import stem, tokenize, tokenize_light
  from snips_nlu.result import parsed_entity
label_desc: Use image node_id 4 for calling the CustomEntityParser obj's underlying member method code with example usage: obj.from_path(cls, path) and returns: cls