code: def test_real_bounds():
      # 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: import pytest
  import numbers
  import numpy
  import os
  import yaml
  from tempfile import NamedTemporaryFile
  from numpy.testing import assert_array_almost_equal
  from numpy.testing import assert_array_equal
  from numpy.testing import assert_equal
  from numpy.testing import assert_raises_regex
  from skopt import Optimizer
  from skopt.space import Space
  from skopt.space import Real
  from skopt.space import Integer
  from skopt.space import Categorical
  from skopt.space import check_dimension
  from skopt.utils import normalize_dimensions
label_desc: Use image node_id 7 for calling a global function with example usage: test_real_bounds() without return types