code: def test_get_slots_should_raise_with_unknown_intent(self):
      # Given
      slots_dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: greeting1
  utterances:
    - Hello [name1](John)
  
  ---
  type: intent
  name: goodbye
  utterances:
    - Goodbye [name](Eric)"""
      )
      dataset = Dataset.from_yaml_files(
          "en", [slots_dataset_stream]
      ).json
  
      # pylint:disable=unused-variable
      @IntentClassifier.register("my_intent_classifier", True)
      class MyIntentClassifier(MockIntentClassifier):
          pass
  
      @SlotFiller.register("my_slot_filler", True)
      class MySlotFiller(MockSlotFiller):
          pass
  
      # pylint:enable=unused-variable
      config = ProbabilisticIntentParserConfig(
          intent_classifier_config="my_intent_classifier",
          slot_filler_config="my_slot_filler",
      )
      parser = ProbabilisticIntentParser(config).fit(dataset)
  
      # When / Then
      with self.assertRaises(IntentNotFoundError):
          parser.get_slots("Hello John", "greeting3")
  
imports: from __future__ import unicode_literals
  import io
  from future.utils import itervalues
  from mock import patch
  from snips_nlu.constants import RES_ENTITY, RES_INTENT, RES_INTENT_NAME, RES_SLOTS, RES_VALUE, RANDOM_STATE
  from snips_nlu.dataset import Dataset
  from snips_nlu.exceptions import IntentNotFoundError, NotTrained
  from snips_nlu.intent_classifier import IntentClassifier, LogRegIntentClassifier
  from snips_nlu.intent_parser import ProbabilisticIntentParser
  from snips_nlu.pipeline.configs import CRFSlotFillerConfig, LogRegIntentClassifierConfig, ProbabilisticIntentParserConfig
  from snips_nlu.result import unresolved_slot, intent_classification_result
  from snips_nlu.slot_filler import SlotFiller
  from snips_nlu.tests.utils import FixtureTest, MockIntentClassifier, MockSlotFiller
label_desc: Use image node_id 7 for calling the TestProbabilisticIntentParser obj's underlying member method code with example usage: obj.test_get_slots_should_raise_with_unknown_intent() without return types