code: def test_empty_vocabulary_should_fit_and_return_none_intent(
      self, mocked_build_training
  ):
      # Given
      dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: dummy_intent_1
  utterances:
    - "[dummy_slot_name:dummy_entity_1](...)"
    
  ---
  type: entity
  name: dummy_entity_1
  automatically_extensible: true
  use_synonyms: false
  matching_strictness: 1.0
  values:
    - ...
  """
      )
      dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
      text = " "
      noise_size = 6
      utterances = [text] + [text] * noise_size
      utterances = [text_to_utterance(t) for t in utterances]
      labels = [0] + [1] * noise_size
      intent_list = ["dummy_intent_1", None]
      mocked_build_training.return_value = (
          utterances,
          labels,
          intent_list,
      )
  
      # When / Then
      intent_classifier = LogRegIntentClassifier().fit(dataset)
      intent = intent_classifier.get_intent("no intent there")
      self.assertEqual(intent_classification_result(None, 1.0), intent)
  
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 13 for calling the TestLogRegIntentClassifier obj's underlying member method code with example usage: obj.test_empty_vocabulary_should_fit_and_return_none_intent(mocked_build_training) without return types