code: def seasonality_plot_df(m, ds):
      """Prepare dataframe for plotting seasonal components.
  
      Parameters
      ----------
      m: Prophet model.
      ds: List of dates for column ds.
  
      Returns
      -------
      A dataframe with seasonal components on ds.
      """
      df_dict = {"ds": ds, "cap": 1.0, "floor": 0.0}
      for name in m.extra_regressors:
          df_dict[name] = 0.0
      # Activate all conditional seasonality columns
      for props in m.seasonalities.values():
          if props["condition_name"] is not None:
              df_dict[props["condition_name"]] = True
      df = pd.DataFrame(df_dict)
      df = m.setup_dataframe(df)
      return df
  
imports: from __future__ import absolute_import, division, print_function
  import logging
  import numpy
  import pandas
  from prophet.diagnostics import performance_metrics
label_desc: Use image node_id 4 for calling a global function with example usage: seasonality_plot_df(m, ds) and returns: df