code: def test_not_finite(a_step_function, non_finite_value):
      with pytest.raises(ValueError, match="x must be finite"):
          a_step_function(non_finite_value)
  
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 4 for calling the TestStepFunction obj's underlying member method code with example usage: obj.test_not_finite(a_step_function, non_finite_value) without return types