code: def test_boxcox1p_nonfinite():
      # x < -1  =>  y = nan
      x = np.array([-2, -2, -1.5])
      y = boxcox1p(x, [0.5, 2.0, -1.5])
      assert_equal(y, np.array([np.nan, np.nan, np.nan]))
  
      # x = -1 and lambda <= 0  =>  y = -inf
      x = -1
      y = boxcox1p(x, [-2.5, 0])
      assert_equal(y, np.array([-np.inf, -np.inf]))
  
file_path: scipy/scipy/special/tests/test_boxcox.py
imports: import numpy
  from numpy.testing import assert_equal, assert_almost_equal, assert_allclose
  from scipy.special import boxcox, boxcox1p, inv_boxcox, inv_boxcox1p
label_desc: Use image node_id 6 for calling a global function with example usage: test_boxcox1p_nonfinite() without return types