code: def test_real_bounds():
      # TODO: Refactor - Use PyTest
      # Should give same answer as using check_limits() but this is easier to read
      a = Real(1.0, 2.1)
      assert 0.99 not in a
      assert 1.0 in a
      assert 2.09 in a
      assert 2.1 in a
      assert np.nextafter(2.1, 3.0) not in a
  
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 8 for calling a global function with example usage: test_real_bounds() without return types