code: def test_auto_config_params(daily_data_reg):
      """Tests the auto options:
  
      - auto_growth
      - auto_holiday
      - auto_seasonality
  
      """
      dl = DataLoader()
      df = dl.load_peyton_manning()
      df[TIME_COL] = pd.to_datetime(df[TIME_COL])
      silverkite = SimpleSilverkiteForecast()
      params = silverkite.convert_params(
          df=df,
          time_col=TIME_COL,
          value_col=VALUE_COL,
          forecast_horizon=7,
          auto_holiday=True,
          holidays_to_model_separately=["custom_event"],
          holiday_lookup_countries="auto",
          holiday_pre_num_days=0,
          holiday_post_num_days=0,
          daily_event_df_dict=dict(
              custom_event=pd.DataFrame(
                  {
                      EVENT_DF_DATE_COL: pd.to_datetime(
                          ["2010-03-03", "2011-03-03", "2012-03-03"]
                      ),
                      EVENT_DF_LABEL_COL: "threethree",
                  }
              )
          ),
          auto_holiday_params=dict(n_clusters=5),
          auto_growth=True,
          growth_term="quadratic",
          changepoints_dict=dict(method="uniform", n_changepoints=2),
          auto_seasonality=True,
          yearly_seasonality=0,
          quarterly_seasonality="auto",
          monthly_seasonality=False,
          weekly_seasonality=True,
          daily_seasonality=5,
      )
  
      # Seasonality is overridden by auto seasonality.
      # Monthly is forced to be 0 because the value if `False`.
      assert params["fs_components_df"].equals(
          pd.DataFrame(
              {
                  "name": ["tow", "toq", "ct1"],
                  "period": [7.0, 1.0, 1.0],
                  "order": [3, 1, 6],
                  "seas_names": ["weekly", "quarterly", "yearly"],
              }
          )
      )
      # Growth is overridden by auto growth.
      assert "ct1" in params["extra_pred_cols"]
      assert params["changepoints_dict"]["method"] == "custom"
      # Holidays is overridden by auto seasonality.
      assert len(params["daily_event_df_dict"]) == 6
      assert "custom_event" in params["daily_event_df_dict"]
      assert "holiday_group_0" in params["daily_event_df_dict"]
  
imports: import datetime
  import math
  import sys
  import warnings
  from datetime import timedelta
  import pandas
  import pytest
  from testfixtures import LogCapture
  import greykite.common.constants
  from greykite.algo.changepoint.adalasso.changepoint_detector import ChangepointDetector
  from greykite.algo.forecast.silverkite.constants.silverkite_column import SilverkiteColumn
  from greykite.algo.forecast.silverkite.constants.silverkite_holiday import SilverkiteHoliday
  from greykite.algo.forecast.silverkite.constants.silverkite_seasonality import SilverkiteSeasonality
  from greykite.algo.forecast.silverkite.constants.silverkite_seasonality import SilverkiteSeasonalityEnum
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite import SimpleSilverkiteForecast
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite_helper import generate_holiday_events
  from greykite.common.constants import CHANGEPOINT_COL_PREFIX
  from greykite.common.constants import EVENT_DF_DATE_COL
  from greykite.common.constants import EVENT_DF_LABEL_COL
  from greykite.common.constants import LOGGER_NAME
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.data_loader import DataLoader
  from greykite.common.enums import SimpleTimeFrequencyEnum
  from greykite.common.enums import TimeEnum
  from greykite.common.features.timeseries_features import get_available_holidays_across_countries
  from greykite.common.features.timeseries_features import get_holidays
  from greykite.common.python_utils import assert_equal
  from greykite.common.python_utils import update_dictionary
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.common.testing_utils import generate_df_with_reg_for_tests
label_desc: Use image node_id 19 for calling a global function with example usage: test_auto_config_params(daily_data_reg) without return types