code: def test_seasonality_modes(self, daily_univariate_ts, backend):
      # Model with holidays, seasonalities, and extra regressors
      holidays = pd.DataFrame(
          {
              "ds": pd.to_datetime(["2016-12-25"]),
              "holiday": ["xmas"],
              "lower_window": [-1],
              "upper_window": [0],
          }
      )
      m = Prophet(
          seasonality_mode="multiplicative",
          holidays=holidays,
          stan_backend=backend,
      )
      m.add_seasonality(
          "monthly", period=30, mode="additive", fourier_order=3
      )
      m.add_regressor("binary_feature", mode="additive")
      m.add_regressor("numeric_feature")
      # Construct seasonal features
      df = daily_univariate_ts.copy()
      df["binary_feature"] = [0] * 255 + [1] * 255
      df["numeric_feature"] = range(510)
      df = m.setup_dataframe(df, initialize_scales=True)
      m.history = df.copy()
      m.set_auto_seasonalities()
      (
          seasonal_features,
          prior_scales,
          component_cols,
          modes,
      ) = m.make_all_seasonality_features(df)
      assert sum(component_cols["additive_terms"]) == 7
      assert sum(component_cols["multiplicative_terms"]) == 29
      assert set(modes["additive"]) == {
          "monthly",
          "binary_feature",
          "additive_terms",
          "extra_regressors_additive",
      }
      assert set(modes["multiplicative"]) == {
          "weekly",
          "yearly",
          "xmas",
          "numeric_feature",
          "multiplicative_terms",
          "extra_regressors_multiplicative",
          "holidays",
      }
  
imports: import numpy
  import pandas
  import pytest
  from prophet import Prophet
  from prophet.utilities import warm_start_params
label_desc: Use image node_id 8 for calling the TestProphetSeasonalComponent obj's underlying member method code with example usage: obj.test_seasonality_modes(daily_univariate_ts, backend) without return types