code: def test_entities_iterators(self, _):
      # Given
      language = "en"
      intent_entities = {
          "entity1": {
              "utterances": {
                  "entity 1": "entity 1",
                  "entity 11": "entity 11",
                  "entity 111": "entity 111",
              }
          },
          "entity2": {
              "utterances": {
                  "entity 2": "entity 2",
                  "entity 22": "entity 22",
                  "entity 222": "entity 222",
              }
          },
          "snips/number": {"utterances": {"two", "21"}},
      }
      random_state = np.random.RandomState(1)
  
      # Then
      it_dict = get_entities_iterators(
          intent_entities, language, False, random_state
      )
  
      # When
      self.assertIn("entity1", it_dict)
      expected_seq = ["entity 1", "entity 11", "entity 111"]
      seq = [next(it_dict["entity1"]) for _ in range(len(expected_seq))]
      self.assertListEqual(expected_seq, sorted(seq))
  
      self.assertIn("entity2", it_dict)
      expected_seq = ["entity 2", "entity 22", "entity 222"]
      seq = [next(it_dict["entity2"]) for _ in range(len(expected_seq))]
      self.assertListEqual(expected_seq, sorted(seq))
  
      self.assertIn("snips/number", it_dict)
      expected_seq = ["21", "two"]
      seq = [
          next(it_dict["snips/number"])
          for _ in range(len(expected_seq))
      ]
      self.assertListEqual(expected_seq, sorted(seq))
  
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 2 for calling the TestDataAugmentation obj's underlying member method code with example usage: obj.test_entities_iterators(_) without return types