code: def test_boxcox_nonfinite():
      # x < 0  =>  y = nan
      x = np.array([-1, -1, -0.5])
      y = boxcox(x, [0.5, 2.0, -1.5])
      assert_equal(y, np.array([np.nan, np.nan, np.nan]))
  
      # x = 0 and lambda <= 0  =>  y = -inf
      x = 0
      y = boxcox(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 3 for calling a global function with example usage: test_boxcox_nonfinite() without return types