code: def get_actual_changepoint_min_distance(
      min_increment: timedelta,
  ) -> str:
      """Gets the minimum distance between detected changepoints.
  
      Parameters
      ----------
      min_increment : `datetime.timedelta`
          The minimum increment between time series points.
  
      Returns
      -------
      actual_changepoint_min_distance : `str`
          The minimum distance between detected changepoints.
      """
      min_distance = (
          min_increment.days * 2
      )  # At most every two data points.
      if min_increment < timedelta(days=1):
          min_distance = max(
              min_distance, 14
          )  # At least 14 days for sub-daily data.
      elif min_increment <= timedelta(days=7):
          min_distance = max(
              min_distance, 30
          )  # At least 30 days for daily to weekly data.
  
      actual_changepoint_min_distance = f"{min_distance}D"
      return actual_changepoint_min_distance
  
file_path: greykite/greykite/algo/changepoint/adalasso/auto_changepoint_params.py
imports: from datetime import timedelta
  from typing import Optional
  import numpy
  import pandas
  from pandas.tseries.frequencies import to_offset
  from greykite.algo.common.seasonality_inferrer import SeasonalityInferConfig
  from greykite.algo.common.seasonality_inferrer import SeasonalityInferrer
  from greykite.algo.common.seasonality_inferrer import TrendAdjustMethodEnum
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
label_desc: Use image node_id 5 for calling a global function with example usage: get_actual_changepoint_min_distance(min_increment) and returns: actual_changepoint_min_distance