code: def test_numbers_variations_should_handle_floats(self):
      # Given
      language = LANGUAGE_EN
      string = "7.62 mm caliber 2 and six"
  
      # When
      variations = numbers_variations(
          string, language, BuiltinEntityParser.build(language="en")
      )
  
      # Then
      expected_variations = {
          "7.62 mm caliber 2 and six",
          "7.62 mm caliber two and six",
          "7.62 mm caliber 2 and 6",
          "7.62 mm caliber two and 6",
      }
      self.assertSetEqual(variations, expected_variations)
  
file_path: snips-nlu/snips_nlu/tests/test_string_variations.py
imports: from __future__ import unicode_literals
  from mock import MagicMock
  from snips_nlu.constants import LANGUAGE_EN, LANGUAGE_FR, RES_MATCH_RANGE, SNIPS_NUMBER, START
  from snips_nlu.entity_parser import BuiltinEntityParser
  from snips_nlu.string_variations import alphabetic_value, and_variations, get_string_variations, numbers_variations, punctuation_variations
  from snips_nlu.tests.utils import SnipsTest
label_desc: Use image node_id 7 for calling the TestStringVariations obj's underlying member method code with example usage: obj.test_numbers_variations_should_handle_floats() without return types