code: def test_out_of_bounds(a_step_function, value):
      v = value
      if v > 0:
          v += a_step_function.domain[1]
  
      with pytest.raises(
          ValueError, match=r"x must be within \[0\.0+; 9\.0+\]"
      ):
          a_step_function(v)
  
file_path: scikit-survival/tests/test_functions.py
imports: import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from sksurv.functions import StepFunction
  from sksurv.testing import all_survival_estimators
label_desc: Use image node_id 3 for calling the TestStepFunction obj's underlying member method code with example usage: obj.test_out_of_bounds(a_step_function, value) without return types