code: def test_normalize():
      # TODO: Refactor - Use PyTest
      a = Real(2.0, 30.0, transform="normalize")
      for i in range(50):
          check_limits(a.rvs(random_state=i), 2, 30)
  
      rng = np.random.RandomState(0)
      X = rng.randn(100)
      X = 28 * (X - X.min()) / (X.max() - X.min()) + 2
  
      # Check transformed values are in [0, 1]
      assert np.all(a.transform(X) <= np.ones_like(X))
      assert np.all(np.zeros_like(X) <= a.transform(X))
  
      # Check inverse transform
      assert_array_almost_equal(a.inverse_transform(a.transform(X)), X)
  
      # log-uniform prior
      a = Real(
          10**2.0,
          10**4.0,
          prior="log-uniform",
          transform="normalize",
      )
      for i in range(50):
          check_limits(a.rvs(random_state=i), 10**2, 10**4)
  
      rng = np.random.RandomState(0)
      X = np.clip(10**3 * rng.randn(100), 10**2.0, 10**4.0)
  
      # Check transform
      assert np.all(a.transform(X) <= np.ones_like(X))
      assert np.all(np.zeros_like(X) <= a.transform(X))
  
      # Check inverse transform
      assert_array_almost_equal(a.inverse_transform(a.transform(X)), X)
  
      a = Integer(2, 30, transform="normalize")
      for i in range(50):
          check_limits(a.rvs(random_state=i), 2, 30)
      assert_array_equal(a.transformed_bounds, (0, 1))
  
      X = rng.randint(2, 31)
      # Check transformed values are in [0, 1]
      assert np.all(a.transform(X) <= np.ones_like(X))
      assert np.all(np.zeros_like(X) <= a.transform(X))
  
      # Check inverse transform
      X_orig = a.inverse_transform(a.transform(X))
      assert_equal(X_orig.dtype, "int64")
      assert_array_equal(X_orig, X)
  
imports: from hyperparameter_hunter.optimization.backends.skopt.engine import Optimizer
  from hyperparameter_hunter.space.dimensions import Real, Integer, Categorical
  from hyperparameter_hunter.space.space_core import Space, check_dimension, normalize_dimensions
  import numbers
  import numpy
  import pytest
  from sklearn.utils.testing import assert_array_almost_equal, assert_array_equal, assert_equal
label_desc: Use image node_id 15 for calling a global function with example usage: test_normalize() without return types