code: def test_expected_error(self):
      y = self.y
      trans = BoxCoxEndogTransformer(lmbda=2.0)
      with pytest.raises(ValueError):
          trans.fit_transform(y)
  
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 1 for calling the TestNonInvertibleBC obj's underlying member method code with example usage: obj.test_expected_error() without return types