code: def test_normalize_integer():
      transformer = Normalize(1, 20, is_int=True)
      assert transformer.transform(19.8) == 1.0
      assert transformer.transform(20.2) == 1.0
      assert transformer.transform(1.2) == 0.0
      assert transformer.transform(0.9) == 0.0
      assert_raises(ValueError, transformer.transform, 20.6)
      assert_raises(ValueError, transformer.transform, 0.4)
  
      assert transformer.inverse_transform(0.99) == 20
      assert transformer.inverse_transform(0.01) == 1
      assert_raises(
          ValueError, transformer.inverse_transform, 1.0 + 1e-6
      )
      assert_raises(ValueError, transformer.transform, 0.0 - 1e-6)
      transformer = Normalize(0, 20, is_int=True)
      assert transformer.transform(-0.2) == 0.0
      assert_raises(ValueError, transformer.transform, -0.6)
  
file_path: scikit-optimize/skopt/tests/test_transformers.py
imports: import pytest
  import numbers
  import numpy
  from numpy.testing import assert_raises
  from numpy.testing import assert_array_equal
  from numpy.testing import assert_equal
  from numpy.testing import assert_raises_regex
  from skopt.space import LogN, Normalize
  from skopt.space.transformers import StringEncoder, LabelEncoder, Identity
label_desc: Use image node_id 6 for calling a global function with example usage: test_normalize_integer() without return types