code: def test_capitalize(self):
      # Given
      language = LANGUAGE_EN
      resources = {STOP_WORDS: {"the", "and", "you"}}
  
      texts = [
          ("the new yorker", "the New Yorker"),
          ("JOHN AND SMITH", "John and Smith"),
          ("you and me", "you and Me"),
      ]
  
      # When
      capitalized_texts = [
          capitalize(text[0], language, resources) for text in texts
      ]
  
      # Then
      expected_capitalized_texts = [text[1] for text in texts]
      self.assertSequenceEqual(
          capitalized_texts, expected_capitalized_texts
      )
  
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 5 for calling the TestDataAugmentation obj's underlying member method code with example usage: obj.test_capitalize() without return types