code: def test_should_get_intent_when_filter(self):
      # Given
      dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: MakeTea
  utterances:
  - make me a cup of tea
  - i want two cups of tea please
  - can you prepare one cup of tea ?
  
  ---
  type: intent
  name: MakeCoffee
  utterances:
  - make me a cup of coffee please
  - brew two cups of coffee
  - can you prepare one cup of coffee"""
      )
      dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
      classifier = LogRegIntentClassifier(random_state=42).fit(dataset)
  
      # When
      text1 = "Make me two cups of tea"
      res1 = classifier.get_intent(text1, ["MakeCoffee", "MakeTea"])
  
      text2 = "Make me two cups of tea"
      res2 = classifier.get_intent(text2, ["MakeCoffee"])
  
      text3 = "bla bla bla"
      res3 = classifier.get_intent(text3, ["MakeCoffee"])
  
      # Then
      self.assertEqual("MakeTea", res1[RES_INTENT_NAME])
      self.assertEqual("MakeCoffee", res2[RES_INTENT_NAME])
      self.assertEqual(None, res3[RES_INTENT_NAME])
  
imports: from __future__ import unicode_literals
  import io
  import sys
  from builtins import str
  from unittest import skipIf
  from checksumdir import dirhash
  from mock import patch
  from snips_nlu.common.io_utils import temp_dir
  from snips_nlu.constants import INTENTS, LANGUAGE_EN, RES_INTENT_NAME, RES_PROBA, UTTERANCES
  from snips_nlu.dataset import Dataset
  from snips_nlu.exceptions import NotTrained
  from snips_nlu.intent_classifier import LogRegIntentClassifier
  from snips_nlu.intent_classifier.featurizer import Featurizer
  from snips_nlu.intent_classifier.log_reg_classifier_utils import text_to_utterance
  from snips_nlu.pipeline.configs import LogRegIntentClassifierConfig
  from snips_nlu.result import intent_classification_result
  from snips_nlu.tests.utils import FixtureTest, get_empty_dataset
label_desc: Use image node_id 3 for calling the TestLogRegIntentClassifier obj's underlying member method code with example usage: obj.test_should_get_intent_when_filter() without return types