code: def test_generate_noise_utterances(self, mocked_get_noise):
      # Given
      language = LANGUAGE_EN
      num_intents = 2
      noise_factor = 1
      utterances_length = 5
  
      noise = [str(i) for i in range(utterances_length)]
      mocked_get_noise.return_value = noise
  
      augmented_utterances = [
          {
              "data": [
                  {
                      "text": " ".join(
                          "{}".format(i)
                          for i in range(utterances_length)
                      )
                  }
              ]
          }
      ]
      num_utterances = 10
      random_state = np.random.RandomState(1)
  
      augmented_utterances = augmented_utterances * num_utterances
      config = IntentClassifierDataAugmentationConfig(
          noise_factor=noise_factor
      )
      # When
      noise_utterances = generate_noise_utterances(
          augmented_utterances,
          noise,
          num_intents,
          config,
          language,
          random_state,
      )
  
      # Then
      joined_noise = text_to_utterance(" ".join(noise))
      for u in noise_utterances:
          self.assertEqual(u, joined_noise)
  
imports: from __future__ import unicode_literals
  import io
  from copy import deepcopy
  from itertools import cycle
  import numpy
  from future.utils import itervalues, iteritems
  from mock import MagicMock, patch
  from snips_nlu.constants import INTENTS, LANGUAGE_EN, UTTERANCES, LANGUAGE, NOISE
  from snips_nlu.dataset import validate_and_format_dataset, Dataset
  from snips_nlu.intent_classifier.log_reg_classifier_utils import add_unknown_word_to_utterances, build_training_data, generate_noise_utterances, generate_smart_noise, get_noise_it, remove_builtin_slots, text_to_utterance
  from snips_nlu.pipeline.configs import IntentClassifierDataAugmentationConfig, LogRegIntentClassifierConfig
  from snips_nlu.tests.test_log_reg_intent_classifier import get_mocked_augment_utterances
  from snips_nlu.tests.utils import SnipsTest, get_empty_dataset
label_desc: Use image node_id 7 for calling the TestLogRegClassifierUtils obj's underlying member method code with example usage: obj.test_generate_noise_utterances(mocked_get_noise) without return types