code: def test_should_be_deserializable(self):
      # Given
      parser_dict = {
          "config": {
              "unit_name": "lookup_intent_parser",
              "ignore_stop_words": True,
          },
          "language_code": "en",
          "map": {
              hash_str("make coffee"): [0, []],
              hash_str("prepare % snipsnumber % coffees"): [0, [0]],
              hash_str(
                  "% snipsnumber % teas at % snipstemperature %"
              ): [1, [0, 1]],
          },
          "slots_names": ["nb_cups", "tea_temperature"],
          "intents_names": ["MakeCoffee", "MakeTea"],
          "entity_scopes": [
              {
                  "entity_scope": {
                      "builtin": ["snips/number"],
                      "custom": [],
                  },
                  "intent_group": ["MakeCoffee"],
              },
              {
                  "entity_scope": {
                      "builtin": ["snips/number", "snips/temperature"],
                      "custom": [],
                  },
                  "intent_group": ["MakeTea"],
              },
          ],
          "stop_words_whitelist": dict(),
      }
      self.tmp_file_path.mkdir()
      metadata = {"unit_name": "lookup_intent_parser"}
      self.writeJsonContent(
          self.tmp_file_path / "intent_parser.json", parser_dict
      )
      self.writeJsonContent(
          self.tmp_file_path / "metadata.json", metadata
      )
      resources = self.get_resources("en")
      builtin_entity_parser = BuiltinEntityParser.build(language="en")
      custom_entity_parser = EntityParserMock()
  
      # When
      parser = LookupIntentParser.from_path(
          self.tmp_file_path,
          custom_entity_parser=custom_entity_parser,
          builtin_entity_parser=builtin_entity_parser,
          resources=resources,
      )
      res_make_coffee = parser.parse("make me a coffee")
      res_make_tea = parser.parse("two teas at 90°C please")
  
      # Then
      expected_result_coffee = parsing_result(
          input="make me a coffee",
          intent=intent_classification_result("MakeCoffee", 1.0),
          slots=[],
      )
      expected_result_tea = parsing_result(
          input="two teas at 90°C please",
          intent=intent_classification_result("MakeTea", 1.0),
          slots=[
              {
                  "entity": "snips/number",
                  "range": {"end": 3, "start": 0},
                  "slotName": "nb_cups",
                  "value": "two",
              },
              {
                  "entity": "snips/temperature",
                  "range": {"end": 16, "start": 12},
                  "slotName": "tea_temperature",
                  "value": "90°C",
              },
          ],
      )
      self.assertEqual(expected_result_coffee, res_make_coffee)
      self.assertEqual(expected_result_tea, res_make_tea)
  
imports: from __future__ import unicode_literals
  import io
  from copy import deepcopy
  from mock import patch
  from snips_nlu_utils import hash_str
  from snips_nlu.constants import DATA, ENTITY, RES_ENTITY, RES_INTENT, RES_INTENT_NAME, RES_PROBA, RES_SLOTS, RES_VALUE, SLOT_NAME, TEXT, STOP_WORDS
  from snips_nlu.dataset import Dataset
  from snips_nlu.entity_parser import BuiltinEntityParser
  from snips_nlu.exceptions import IntentNotFoundError, NotTrained
  from snips_nlu.intent_parser import LookupIntentParser
  from snips_nlu.intent_parser.lookup_intent_parser import _get_entity_scopes
  from snips_nlu.pipeline.configs import LookupIntentParserConfig
  from snips_nlu.result import empty_result, extraction_result, intent_classification_result, unresolved_slot, parsing_result
  from snips_nlu.tests.utils import FixtureTest, TEST_PATH, EntityParserMock
label_desc: Use image node_id 26 for calling the TestLookupIntentParser obj's underlying member method code with example usage: obj.test_should_be_deserializable() without return types