code: def test_training_should_be_reproducible(self):
      # Given
      random_state = 40
      dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: MakeTea
  utterances:
  - make me a [beverage_temperature:Temperature](hot) cup of tea
  - make me [number_of_cups:snips/number](five) tea cups
  
  ---
  type: intent
  name: MakeCoffee
  utterances:
  - make me [number_of_cups:snips/number](one) cup of coffee please
  - brew [number_of_cups] cups of coffee"""
      )
      dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
  
      # When
      classifier1 = LogRegIntentClassifier(random_state=random_state)
      classifier1.fit(dataset)
  
      classifier2 = LogRegIntentClassifier(random_state=random_state)
      classifier2.fit(dataset)
  
      # Then
      with temp_dir() as tmp_dir:
          dir_classifier1 = tmp_dir / "classifier1"
          dir_classifier2 = tmp_dir / "classifier2"
          classifier1.persist(dir_classifier1)
          classifier2.persist(dir_classifier2)
          hash1 = dirhash(str(dir_classifier1), "sha256")
          hash2 = dirhash(str(dir_classifier2), "sha256")
          self.assertEqual(hash1, hash2)
  
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 16 for calling the TestLogRegIntentClassifier obj's underlying member method code with example usage: obj.test_training_should_be_reproducible() without return types