code: def test_pipeline_behavior():
      pipeline = Pipeline(
          [
              ("fourier", FourierFeaturizer(m=12)),
              ("boxcox", BoxCoxEndogTransformer()),
              (
                  "arima",
                  AutoARIMA(
                      seasonal=False,
                      stepwise=True,
                      suppress_warnings=True,
                      d=1,
                      max_p=2,
                      max_q=0,
                      start_q=0,
                      start_p=1,
                      maxiter=3,
                      error_action="ignore",
                  ),
              ),
          ]
      )
  
      # Quick assertions on indexing
      assert len(pipeline) == 3
  
      pipeline.fit(train)
      preds = pipeline.predict(5)
      assert preds.shape[0] == 5
  
      assert pipeline._final_estimator.model_.fit_with_exog_
  
      # Assert that when the n_periods kwarg is set manually and incorrectly for
      # the fourier transformer, we get a ValueError
      kwargs = {"fourier__n_periods": 10}
  
      with pytest.raises(ValueError) as ve:
          pipeline.predict(3, **kwargs)
      assert "'n_periods'" in pytest_error_str(ve)
  
      # Assert that we can update the model
      pipeline.update(test, maxiter=5)
  
      # And that the fourier transformer was updated properly...
      assert pipeline.steps_[0][1].n_ == wineind.shape[0]
  
imports: from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.model_selection import train_test_split
  from pmdarima.pipeline import Pipeline, _warn_for_deprecated
  from pmdarima.preprocessing import BoxCoxEndogTransformer, FourierFeaturizer, DateFeaturizer, LogEndogTransformer
  from pmdarima.arima import ARIMA, AutoARIMA
  from pmdarima.datasets import load_wineind
  from pmdarima.datasets._base import load_date_example
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_pipeline_behavior() without return types