code: def test_get_changepoint_resample_freq():
      """Tests get changepoint resample frequency."""
      # Hourly data.
      resample_freq = get_changepoint_resample_freq(
          n_points=24 * 365, min_increment=timedelta(hours=1)
      )
      assert resample_freq == "3D"
  
      # Daily data.
      resample_freq = get_changepoint_resample_freq(
          n_points=365 * 2, min_increment=timedelta(days=1)
      )
      assert resample_freq == "7D"
  
      # Weekly data.
      resample_freq = get_changepoint_resample_freq(
          n_points=52 * 2, min_increment=timedelta(days=7)
      )
      assert resample_freq is None
  
      # Override ``min_num_points_after_agg``.
      resample_freq = get_changepoint_resample_freq(
          n_points=365,
          min_increment=timedelta(days=1),
          min_num_points_after_agg=200,
      )
      assert resample_freq == "D"
  
      # Override ``min_num_points_after_agg``.
      resample_freq = get_changepoint_resample_freq(
          n_points=365,
          min_increment=timedelta(days=1),
          min_num_points_after_agg=50,
      )
      assert resample_freq == "7D"
  
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 5 for calling a global function with example usage: test_get_changepoint_resample_freq() without return types