code: def test_plot_trend_changepoint_detection(df_pt):
      model = BaseSilverkiteEstimator()
      model.fit(X=df_pt, time_col=cst.TIME_COL, value_col=cst.VALUE_COL)
      params = {"changepoints_dict": {"method": "auto"}}
      silverkite = SilverkiteForecast()
      model.model_dict = silverkite.forecast(
          df=df_pt,
          time_col=cst.TIME_COL,
          value_col=cst.VALUE_COL,
          **params,
      )
      model.finish_fit()
      fig = model.plot_trend_changepoint_detection()
      assert fig is not None
      assert (
          fig.layout.title["text"]
          == "Timeseries Plot with detected trend change points"
      )
      assert fig.layout.title["x"] == 0.5
      assert fig.layout.yaxis.title["text"] == cst.VALUE_COL
      assert fig.layout.xaxis.title["text"] == "Dates"
      # tests given parameters
      fig = model.plot_trend_changepoint_detection(
          dict(trend_change=False)
      )
      assert fig is not None
      assert fig.layout.title["text"] == "Timeseries Plot"
      assert fig.layout.title["x"] == 0.5
      assert fig.layout.yaxis.title["text"] == cst.VALUE_COL
      assert fig.layout.xaxis.title["text"] == "Dates"
  
imports: import datetime
  import numpy
  import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from sklearn.metrics import mean_absolute_error
  from sklearn.metrics import mean_squared_error
  from testfixtures import LogCapture
  import greykite.common.constants
  from greykite.algo.forecast.silverkite.forecast_silverkite import SilverkiteForecast
  from greykite.common.data_loader import DataLoader
  from greykite.common.features.timeseries_features import convert_date_to_continuous_time
  from greykite.common.python_utils import assert_equal
  from greykite.common.testing_utils import daily_data_reg
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.common.testing_utils import generate_df_with_reg_for_tests
  from greykite.sklearn.estimator.base_silverkite_estimator import BaseSilverkiteEstimator
  from greykite.sklearn.estimator.testing_utils import params_component_breakdowns
  from greykite.sklearn.estimator.testing_utils import params_components
label_desc: Use image node_id 16 for calling a global function with example usage: test_plot_trend_changepoint_detection(df_pt) without return types