code: def test_get_default_changepoints_dict():
      """Tests ``get_default_changepoints_dict``."""
      change_points_dict = get_default_changepoints_dict(
          changepoints_method="uniform",
          num_days=365,
          forecast_horizon_in_days=7,
      )
  
      for key in ["method", "n_changepoints", "continuous_time_col"]:
          assert (
              change_points_dict[key]
              == {
                  "method": "uniform",
                  "n_changepoints": 12,
                  "continuous_time_col": "ct1",
              }[key]
          )
  
      change_points_dict = get_default_changepoints_dict(
          changepoints_method="auto",
          num_days=365,
          forecast_horizon_in_days=7,
      )
  
      assert change_points_dict == {
          "method": "auto",
          "yearly_seasonality_order": 10,
          "resample_freq": "7D",
          "regularization_strength": 0.8,
          "actual_changepoint_min_distance": "14D",
          "potential_changepoint_distance": "7D",
          "no_changepoint_distance_from_end": "14D",
      }
  
      change_points_dict = get_default_changepoints_dict(
          changepoints_method=None,
          num_days=365,
          forecast_horizon_in_days=7,
      )
  
      assert change_points_dict is None
  
      change_points_dict = get_default_changepoints_dict(
          changepoints_method="auto",
          num_days=10,
          forecast_horizon_in_days=7,
      )
  
      assert change_points_dict is None
  
      change_points_dict = get_default_changepoints_dict(
          changepoints_method="uniform",
          num_days=10,
          forecast_horizon_in_days=7,
      )
  
      assert change_points_dict is None
  
file_path: greykite/greykite/tests/algo/forecast/silverkite/test_forecast_silverkite_helper.py
imports: import datetime
  import pandas
  import pytest
  from greykite.algo.forecast.silverkite.forecast_silverkite_helper import get_default_changepoints_dict
  from greykite.algo.forecast.silverkite.forecast_silverkite_helper import get_fourier_feature_col_names
  from greykite.algo.forecast.silverkite.forecast_silverkite_helper import get_silverkite_uncertainty_dict
  from greykite.algo.forecast.silverkite.forecast_silverkite_helper import get_similar_lag
  from greykite.common.features.timeseries_features import fourier_series_multi_fcn
  from greykite.common.python_utils import assert_equal
  from greykite.common.testing_utils import generate_df_for_tests
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_default_changepoints_dict() without return types