code: def test_value_error_on_neg_lambda():
      trans = BoxCoxEndogTransformer(lmbda2=-4.0)
      with pytest.raises(ValueError) as ve:
          trans.fit_transform([1, 2, 3])
      assert "lmbda2 must be a non-negative" in pytest_error_str(ve)
  
file_path: pmdarima/pmdarima/preprocessing/endog/tests/test_boxcox.py
imports: import numpy
  from numpy.testing import assert_array_almost_equal
  from scipy import stats
  import pytest
  from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.preprocessing import BoxCoxEndogTransformer
label_desc: Use image node_id 3 for calling a global function with example usage: test_value_error_on_neg_lambda() without return types