code: def test_register_point_beyond_bounds():
      PBOUNDS = {"p1": (0, 1), "p2": (1, 10)}
      space = TargetSpace(target_func, PBOUNDS)
  
      with pytest.warns(UserWarning):
          space.register(params={"p1": 0.5, "p2": 20}, target=2.5)
  
imports: import pytest
  import numpy
  from bayes_opt.constraint import ConstraintModel
  from bayes_opt.target_space import TargetSpace
  from bayes_opt.util import NotUniqueError
label_desc: Use image node_id 8 for calling a global function with example usage: test_register_point_beyond_bounds() without return types