code: def test_should_support_int_or_float_for_matching_strictness(self):
      # Given
      dataset = {
          "intents": {},
          "entities": {
              "entity1": {
                  "data": [],
                  "automatically_extensible": False,
                  "use_synonyms": True,
                  "matching_strictness": 0.5,
              },
              "entity2": {
                  "data": [],
                  "automatically_extensible": False,
                  "use_synonyms": True,
                  "matching_strictness": 1,
              },
          },
          "language": "en",
      }
  
      # When/Then
      dataset = validate_and_format_dataset(dataset)
  
      self.assertEqual(
          0.5, dataset["entities"]["entity1"].get("matching_strictness")
      )
      self.assertEqual(
          1, dataset["entities"]["entity2"].get("matching_strictness")
      )
  
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 4 for calling the TestDatasetValidation obj's underlying member method code with example usage: obj.test_should_support_int_or_float_for_matching_strictness() without return types