code: def test_generate_noise_utterances_should_replace_unknown_words(
      self, mocked_noise
  ):
      # Given
      utterances = [
          {
              "data": [
                  {"text": "hello "},
                  {"text": " you ", "entity": "you"},
                  {"text": " how are you "},
                  {"text": "bobby", "entity": "you"},
              ]
          }
      ]
      language = LANGUAGE_EN
      base_noise = ["hello", "dear", "you", "fool"]
      mocked_noise.return_value = base_noise
      replacement_string = "unknownword"
  
      # When
      noise = generate_smart_noise(
          base_noise, utterances, replacement_string, language
      )
  
      # Then
      expected_noise = [
          "hello",
          replacement_string,
          "you",
          replacement_string,
      ]
      self.assertEqual(noise, expected_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 4 for calling the TestLogRegClassifierUtils obj's underlying member method code with example usage: obj.test_generate_noise_utterances_should_replace_unknown_words(mocked_noise) without return types