code: def test_should_parse_slots(self):
      # Given
      dataset = self.slots_dataset
      parser = LookupIntentParser().fit(dataset)
      texts = [
          (
              "this is a dummy a query with another dummy_c at 10p.m. or at"
              " 12p.m.",
              [
                  unresolved_slot(
                      match_range=(10, 17),
                      value="dummy a",
                      entity="dummy_entity_1",
                      slot_name="dummy_slot_name",
                  ),
                  unresolved_slot(
                      match_range=(37, 44),
                      value="dummy_c",
                      entity="dummy_entity_2",
                      slot_name="dummy_slot_name2",
                  ),
                  unresolved_slot(
                      match_range=(45, 54),
                      value="at 10p.m.",
                      entity="snips/datetime",
                      slot_name="startTime",
                  ),
                  unresolved_slot(
                      match_range=(58, 67),
                      value="at 12p.m.",
                      entity="snips/datetime",
                      slot_name="startTime",
                  ),
              ],
          ),
          (
              "this, is,, a, dummy a query with another dummy_c at 10pm or "
              "at 12p.m.",
              [
                  unresolved_slot(
                      match_range=(14, 21),
                      value="dummy a",
                      entity="dummy_entity_1",
                      slot_name="dummy_slot_name",
                  ),
                  unresolved_slot(
                      match_range=(41, 48),
                      value="dummy_c",
                      entity="dummy_entity_2",
                      slot_name="dummy_slot_name2",
                  ),
                  unresolved_slot(
                      match_range=(49, 56),
                      value="at 10pm",
                      entity="snips/datetime",
                      slot_name="startTime",
                  ),
                  unresolved_slot(
                      match_range=(60, 69),
                      value="at 12p.m.",
                      entity="snips/datetime",
                      slot_name="startTime",
                  ),
              ],
          ),
          (
              "this is a dummy b",
              [
                  unresolved_slot(
                      match_range=(10, 17),
                      value="dummy b",
                      entity="dummy_entity_1",
                      slot_name="dummy_slot_name",
                  )
              ],
          ),
          (
              " this is a dummy b ",
              [
                  unresolved_slot(
                      match_range=(11, 18),
                      value="dummy b",
                      entity="dummy_entity_1",
                      slot_name="dummy_slot_name",
                  )
              ],
          ),
          (
              " at 8am ’ there is a dummy  a",
              [
                  unresolved_slot(
                      match_range=(1, 7),
                      value="at 8am",
                      entity="snips/datetime",
                      slot_name="startTime",
                  ),
                  unresolved_slot(
                      match_range=(21, 29),
                      value="dummy  a",
                      entity="dummy_entity_1",
                      slot_name="dummy_slot_name",
                  ),
              ],
          ),
      ]
  
      for text, expected_slots in texts:
          # When
          parsing = parser.parse(text)
  
          # Then
          self.assertListEqual(expected_slots, parsing[RES_SLOTS])
  
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 13 for calling the TestLookupIntentParser obj's underlying member method code with example usage: obj.test_should_parse_slots() without return types