code: def test_should_create_number_variation(self):
      # Given
      args = {
          1: {
              "numbers": True,
              "and_": True,
              "case": True,
              "punctuation": True,
          },
          1001: {
              "numbers": False,
              "and_": True,
              "case": True,
              "punctuation": True,
          },
          10001: {
              "numbers": False,
              "and_": False,
              "case": False,
              "punctuation": False,
          },
      }
  
      for num_ents, expected_args in iteritems(args):
          entity = {
              "matching_strictness": 1.0,
              "use_synonyms": False,
              "automatically_extensible": False,
              "data": [
                  {"value": str(i), "synonyms": []}
                  for i in range(num_ents)
              ],
          }
          builtin_entity_parser = EntityParserMock(dict())
          with patch(
              "snips_nlu.dataset.validation" ".get_string_variations"
          ) as mocked_string_variations:
              mocked_string_variations.return_value = []
              # When
              _validate_and_format_custom_entity(
                  entity, [], "en", builtin_entity_parser
              )
              # Then
              for call in mocked_string_variations.mock_calls:
                  kwargs = call[2]
                  for k in expected_args:
                      self.assertEqual(expected_args[k], kwargs[k])
  
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 17 for calling the TestDatasetValidation obj's underlying member method code with example usage: obj.test_should_create_number_variation() without return types