code: def test_changepoint_detection(df_daily, df_weekly):
      """Tests changepoint detection with the auto generated parameters."""
      # Daily data.
      params = generate_trend_changepoint_detection_params(
          df=df_daily["df"], forecast_horizon=7
      )
      cd = ChangepointDetector()
      cd.find_trend_changepoints(
          df=df_daily["df"],
          time_col=TIME_COL,
          value_col=VALUE_COL,
          **params,
      )
  
      # Weekly data.
      params = generate_trend_changepoint_detection_params(
          df=df_weekly["df"], forecast_horizon=7
      )
      cd = ChangepointDetector()
      cd.find_trend_changepoints(
          df=df_weekly["df"],
          time_col=TIME_COL,
          value_col=VALUE_COL,
          **params,
      )
  
imports: from datetime import timedelta
  import pytest
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import generate_trend_changepoint_detection_params
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import get_actual_changepoint_min_distance
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import get_changepoint_resample_freq
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import get_no_changepoint_distance_from_end
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import get_potential_changepoint_n
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import get_regularization_strength
  from greykite.algo.changepoint.adalasso.auto_changepoint_params import get_yearly_seasonality_order
  from greykite.algo.changepoint.adalasso.changepoint_detector import ChangepointDetector
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.testing_utils import generate_df_for_tests
label_desc: Use image node_id 12 for calling a global function with example usage: test_changepoint_detection(df_daily, df_weekly) without return types