code: def test_additional_terms(time_index):
      add_terms = [TimeTrend(True, order=1)]
      dp = DeterministicProcess(time_index, additional_terms=add_terms)
      dp2 = DeterministicProcess(time_index, constant=True, order=1)
      pd.testing.assert_frame_equal(dp.in_sample(), dp2.in_sample())
      with pytest.raises(
          ValueError, match="One or more terms in additional_terms"
      ):
          DeterministicProcess(
              time_index, additional_terms=add_terms + add_terms
          )
      with pytest.raises(
          ValueError, match="One or more terms in additional_terms"
      ):
          DeterministicProcess(
              time_index,
              constant=True,
              order=1,
              additional_terms=add_terms,
          )
  
imports: from statsmodels.compat.pandas import MONTH_END, PD_LT_1_0_0, QUARTER_END, YEAR_END, is_int_index
  from statsmodels.compat.pytest import pytest_warns
  from collections.abc import Hashable
  import numpy
  import pandas
  import pytest
  from statsmodels.tsa.deterministic import CalendarFourier, CalendarSeasonality, CalendarTimeTrend, DeterministicProcess, DeterministicTerm, Fourier, Seasonality, TimeTrend
label_desc: Use image node_id 34 for calling a global function with example usage: test_additional_terms(time_index) without return types