code: def test_transform_inverse_transform_equivalence(sp, model):
      transformer = Deseasonalizer(sp=sp, model=model)
      transformer.fit(y_train)
      yit = transformer.inverse_transform(
          transformer.transform(y_train)
      )
      np.testing.assert_array_equal(y_train.index, yit.index)
      np.testing.assert_array_almost_equal(y_train, yit)
  
file_path: sktime/sktime/transformations/series/detrend/tests/test_deseasonalise.py
imports: import numpy
  import pytest
  from sktime.forecasting.tests._config import TEST_SPS
  from sktime.split import temporal_train_test_split
  from sktime.transformations.series.detrend import Deseasonalizer
  from sktime.utils._testing.forecasting import make_forecasting_problem
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 4 for calling a global function with example usage: test_transform_inverse_transform_equivalence(sp, model) without return types