code: def test_should_not_collapse_utterance_entity_variations(self):
      # Given
      dataset = {
          "language": "en",
          "intents": {
              "verify_length": {
                  "utterances": [
                      {
                          "data": [
                              {"text": "hello "},
                              {
                                  "text": "9",
                                  "slot_name": "expected",
                                  "entity": "expected",
                              },
                          ]
                      },
                      {
                          "data": [
                              {"text": "hello "},
                              {
                                  "text": "nine",
                                  "slot_name": "expected",
                                  "entity": "expected",
                              },
                          ]
                      },
                  ]
              }
          },
          "entities": {
              "expected": {
                  "automatically_extensible": True,
                  "use_synonyms": True,
                  "data": [],
                  "matching_strictness": 1.0,
              }
          },
      }
  
      # When
      validated_dataset = validate_and_format_dataset(dataset)
  
      # Then
      expected_dataset = {
          "language": "en",
          "intents": {
              "verify_length": {
                  "utterances": [
                      {
                          "data": [
                              {"text": "hello "},
                              {
                                  "text": "9",
                                  "slot_name": "expected",
                                  "entity": "expected",
                              },
                          ]
                      },
                      {
                          "data": [
                              {"text": "hello "},
                              {
                                  "text": "nine",
                                  "slot_name": "expected",
                                  "entity": "expected",
                              },
                          ]
                      },
                  ]
              }
          },
          "entities": {
              "expected": {
                  "automatically_extensible": True,
                  "matching_strictness": 1.0,
                  "capitalize": False,
                  "utterances": {
                      "nine": "nine",
                      "Nine": "nine",
                      "9": "9",
                  },
              }
          },
          "validated": True,
      }
      self.assertDictEqual(expected_dataset, validated_dataset)
  
imports: from __future__ import unicode_literals
  import io
  from builtins import range, str
  from future.utils import iteritems
  from mock import mock, patch
  from snips_nlu.constants import ENTITIES, SNIPS_DATETIME, VALIDATED
  from snips_nlu.dataset import Dataset
  from snips_nlu.dataset.validation import validate_and_format_dataset, _validate_and_format_custom_entity
  from snips_nlu.exceptions import DatasetFormatError
  from snips_nlu.tests.utils import SnipsTest, EntityParserMock
label_desc: Use image node_id 18 for calling the TestDatasetValidation obj's underlying member method code with example usage: obj.test_should_not_collapse_utterance_entity_variations() without return types