code: def test_should_be_serializable(self, mock_get_stop_words):
      # Given
      dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: searchFlight
  slots:
    - name: origin
      entity: city
    - name: destination
      entity: city
  utterances:
    - find me a flight from [origin](Paris) to [destination](New York)
    - I need a flight to [destination](Berlin)
  
  ---
  type: entity
  name: city
  values:
    - london
    - [new york, big apple]
    - [paris, city of lights]"""
      )
  
      dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
  
      mock_get_stop_words.return_value = {"a", "me"}
      config = LookupIntentParserConfig(ignore_stop_words=True)
      parser = LookupIntentParser(config=config).fit(dataset)
  
      # When
      parser.persist(self.tmp_file_path)
  
      # Then
      expected_dict = {
          "config": {
              "unit_name": "lookup_intent_parser",
              "ignore_stop_words": True,
          },
          "intents_names": ["searchFlight"],
          "language_code": "en",
          "map": {
              "-2020846245": [0, [0, 1]],
              "-1558674456": [0, [1]],
          },
          "slots_names": ["origin", "destination"],
          "entity_scopes": [
              {
                  "entity_scope": {"builtin": [], "custom": ["city"]},
                  "intent_group": ["searchFlight"],
              }
          ],
          "stop_words_whitelist": dict(),
      }
      metadata = {"unit_name": "lookup_intent_parser"}
      self.assertJsonContent(
          self.tmp_file_path / "metadata.json", metadata
      )
      self.assertJsonContent(
          self.tmp_file_path / "intent_parser.json", expected_dict
      )
  
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 25 for calling the TestLookupIntentParser obj's underlying member method code with example usage: obj.test_should_be_serializable(mock_get_stop_words) without return types