code: def test_invertible(X):
      trans = BoxCoxEndogTransformer()
      y_t, e_t = trans.fit_transform(loggamma, X)
      y_prime, e_prime = trans.inverse_transform(y_t, X=e_t)
  
      assert_array_almost_equal(loggamma, y_prime)
  
      # X should all be the same too
      if X is None:
          assert X is e_t is e_prime is None
      else:
          assert_array_almost_equal(X, e_t)
          assert_array_almost_equal(X, e_prime)
  
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 a global function with example usage: test_invertible(X) without return types