code: def test_prepare_parameter_or_function__constant__bound() -> None:
      initial = 5.0
  
      with pytest.raises(Exception):
          prepare_parameter_or_function(
              initial, lower_bound=initial + 1e-3
          )
  
      lower_bound = initial - 1e-3
      param = prepare_parameter_or_function(
          initial, lower_bound=lower_bound
      )
      assert isinstance(param, Parameter)
      assert isinstance(param.transform, tfp.bijectors.Chain)
      assert_allclose(initial, param)
  
      X = np.array(
          [
              [0.0, 0.0],
              [0.0, 1.0],
              [0.0, 2.0],
              [1.0, 0.0],
              [1.0, 1.0],
              [1.0, 2.0],
          ]
      )
      assert_allclose(
          initial,
          evaluate_parameter_or_function(
              param, X, lower_bound=lower_bound
          ),
      )
  
file_path: GPflow/tests/gpflow/utilities/test_parameter_or_function.py
imports: import numpy
  import pytest
  import tensorflow_probability
  from numpy.testing import assert_allclose
  from gpflow.base import Parameter
  from gpflow.functions import Linear
  from gpflow.utilities.parameter_or_function import evaluate_parameter_or_function, prepare_parameter_or_function
label_desc: Use image node_id 2 for calling a global function with example usage: test_prepare_parameter_or_function__constant__bound() without return types