code: def test_should_capitalize_only_right_entities(self):
      # Given
      language = LANGUAGE_EN
      resources = {STOP_WORDS: {"the", "and", "you"}}
  
      ratio = 1
      entities = {
          "person": {"capitalize": False},
          "magazine": {"capitalize": True},
      }
      utterances = [
          {
              "data": [
                  {"text": "i love "},
                  {"text": "the new yorker", "entity": "magazine"},
                  {"text": " and "},
                  {"text": "rock and rolla", "entity": "magazine"},
              ]
          },
          {
              "data": [
                  {"text": "let's visit"},
                  {"text": "andrew and smith", "entity": "person"},
                  {"text": " right now"},
              ]
          },
      ]
      random_state = np.random.RandomState(1)
  
      # When
      capitalized_utterances = capitalize_utterances(
          utterances, entities, language, ratio, resources, random_state
      )
  
      # Then
      expected_utterances = [
          {
              "data": [
                  {"text": "i love "},
                  {"text": "the New Yorker", "entity": "magazine"},
                  {"text": " and "},
                  {"text": "Rock and Rolla", "entity": "magazine"},
              ]
          },
          {
              "data": [
                  {"text": "let's visit"},
                  {"text": "andrew and smith", "entity": "person"},
                  {"text": " right now"},
              ]
          },
      ]
      self.assertEqual(capitalized_utterances, expected_utterances)
  
file_path: snips-nlu/snips_nlu/tests/test_data_augmentation.py
imports: from __future__ import unicode_literals
  from builtins import next, range
  import numpy
  from mock import patch
  from snips_nlu.constants import LANGUAGE_EN, STOP_WORDS
  from snips_nlu.data_augmentation import capitalize, capitalize_utterances, generate_utterance, get_contexts_iterator, get_entities_iterators
  from snips_nlu.tests.utils import SnipsTest
label_desc: Use image node_id 6 for calling the TestDataAugmentation obj's underlying member method code with example usage: obj.test_should_capitalize_only_right_entities() without return types