code: def test_should_parse_stop_words_slots(self):
      # Given
      dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: search
  utterances:
    - search
    - search [search_object](this)
    - search [search_object](a cat)
    
  ---
  type: entity
  name: search_object
  values:
    - [this thing, that]
    """
      )
  
      resources = deepcopy(self.get_resources("en"))
      resources[STOP_WORDS] = {"a", "this", "that"}
      dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
      parser_config = DeterministicIntentParserConfig(
          ignore_stop_words=True
      )
      parser = DeterministicIntentParser(
          config=parser_config, resources=resources
      )
      parser.fit(dataset)
  
      # When
      res_1 = parser.parse("search this")
      res_2 = parser.parse("search that")
  
      # Then
      expected_intent = intent_classification_result(
          intent_name="search", probability=1.0
      )
      expected_slots_1 = [
          unresolved_slot(
              match_range=(7, 11),
              value="this",
              entity="search_object",
              slot_name="search_object",
          )
      ]
      expected_slots_2 = [
          unresolved_slot(
              match_range=(7, 11),
              value="that",
              entity="search_object",
              slot_name="search_object",
          )
      ]
      self.assertEqual(expected_intent, res_1[RES_INTENT])
      self.assertEqual(expected_intent, res_2[RES_INTENT])
      self.assertListEqual(expected_slots_1, res_1[RES_SLOTS])
      self.assertListEqual(expected_slots_2, res_2[RES_SLOTS])
  
imports: from __future__ import unicode_literals
  import io
  from builtins import range
  from copy import deepcopy
  from checksumdir import dirhash
  from mock import patch
  from snips_nlu.common.io_utils import temp_dir
  from snips_nlu.constants import DATA, END, ENTITY, LANGUAGE_EN, RES_ENTITY, RES_INTENT, RES_INTENT_NAME, RES_PROBA, RES_SLOTS, RES_VALUE, SLOT_NAME, START, TEXT, STOP_WORDS
  from snips_nlu.dataset import Dataset
  from snips_nlu.exceptions import IntentNotFoundError, NotTrained
  from snips_nlu.intent_parser.deterministic_intent_parser import DeterministicIntentParser, _deduplicate_overlapping_slots, _get_range_shift
  from snips_nlu.pipeline.configs import DeterministicIntentParserConfig
  from snips_nlu.result import extraction_result, intent_classification_result, unresolved_slot, empty_result, parsing_result
  from snips_nlu.tests.utils import FixtureTest, TEST_PATH
label_desc: Use image node_id 13 for calling the TestDeterministicIntentParser obj's underlying member method code with example usage: obj.test_should_parse_stop_words_slots() without return types