code: def test_conditional_deseasonalization():
      """Test deaseaonalizer TransformIf, same as docstring."""
      # pipeline with deseasonalization conditional on seasonality test
      from sktime.datasets import load_airline
      from sktime.param_est.seasonality import SeasonalityACF
      from sktime.transformations.compose import TransformIf
      from sktime.transformations.series.detrend import Deseasonalizer
  
      y = load_airline()
  
      seasonal = SeasonalityACF(candidate_sp=12)
      deseason = Deseasonalizer(sp=12)
      cond_deseason = TransformIf(seasonal, "sp", "!=", 1, deseason)
      y_hat = cond_deseason.fit_transform(y)
  
      assert len(y_hat) == len(y)
      assert (y_hat.index == y.index).all()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_conditional_deseasonalization() without return types