code: def test_real():
      a = Real(1, 25)
      for i in range(50):
          r = a.rvs(random_state=i)
          check_limits(r, 1, 25)
          assert r in a
  
      random_values = a.rvs(random_state=0, n_samples=10)
      assert len(random_values) == 10
      assert_array_equal(a.transform(random_values), random_values)
      assert_array_equal(
          a.inverse_transform(random_values), random_values
      )
  
      log_uniform = Real(10**-5, 10**5, prior="log-uniform")
      assert log_uniform != Real(10**-5, 10**5)
      for i in range(50):
          random_val = log_uniform.rvs(random_state=i)
          check_limits(random_val, 10**-5, 10**5)
      random_values = log_uniform.rvs(random_state=0, n_samples=10)
      assert len(random_values) == 10
      transformed_vals = log_uniform.transform(random_values)
      assert_array_equal(transformed_vals, np.log10(random_values))
      assert_array_equal(
          log_uniform.inverse_transform(transformed_vals), random_values
      )
  
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 6 for calling a global function with example usage: test_real() without return types