code: def test_forecast_seasonal_alignment(data, period):
      res = ThetaModel(
          data,
          period=period,
          deseasonalize=True,
          use_test=False,
          difference=False,
      ).fit(use_mle=False)
      seasonal = res._seasonal
      comp = res.forecast_components(32)
      index = np.arange(data.shape[0], data.shape[0] + comp.shape[0])
      expected = seasonal[index % period]
      np.testing.assert_allclose(comp.seasonal, expected)
  
file_path: statsmodels/statsmodels/tsa/forecasting/tests/test_theta.py
imports: from itertools import product
  import numpy
  import pandas
  import pytest
  from statsmodels.tsa.forecasting.theta import ThetaModel
label_desc: Use image node_id 8 for calling a global function with example usage: test_forecast_seasonal_alignment(data, period) without return types