code: def daily_data_reg():
      """Generates daily data with regressors for tests.
      Returns
      -------
      df : pd.DataFrame
          with columns of type: datetime, number, number, boolean, object, category
      """
      df = generate_df_with_reg_for_tests(
          freq="D",
          periods=50,
          train_start_date=datetime.datetime(2018, 11, 30),
          remove_extra_cols=False,
      )["df"]
      df["dow_categorical"] = df["str_dow"].astype("category")
      df = df[
          [
              cst.TIME_COL,
              cst.VALUE_COL,
              "regressor1",
              "regressor2",
              "regressor_bool",
              "str_dow",
              "dow_categorical",
          ]
      ]
      df = df.rename(
          {
              cst.TIME_COL: "custom_time_col",
              cst.VALUE_COL: "custom_value_col",
          },
          axis=1,
      )
  
      return df
  
imports: import datetime
  import math
  import sys
  import warnings
  from datetime import timedelta
  import pandas
  import pytest
  from testfixtures import LogCapture
  import greykite.common.constants
  from greykite.algo.changepoint.adalasso.changepoint_detector import ChangepointDetector
  from greykite.algo.forecast.silverkite.constants.silverkite_column import SilverkiteColumn
  from greykite.algo.forecast.silverkite.constants.silverkite_holiday import SilverkiteHoliday
  from greykite.algo.forecast.silverkite.constants.silverkite_seasonality import SilverkiteSeasonality
  from greykite.algo.forecast.silverkite.constants.silverkite_seasonality import SilverkiteSeasonalityEnum
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite import SimpleSilverkiteForecast
  from greykite.algo.forecast.silverkite.forecast_simple_silverkite_helper import generate_holiday_events
  from greykite.common.constants import CHANGEPOINT_COL_PREFIX
  from greykite.common.constants import EVENT_DF_DATE_COL
  from greykite.common.constants import EVENT_DF_LABEL_COL
  from greykite.common.constants import LOGGER_NAME
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.data_loader import DataLoader
  from greykite.common.enums import SimpleTimeFrequencyEnum
  from greykite.common.enums import TimeEnum
  from greykite.common.features.timeseries_features import get_available_holidays_across_countries
  from greykite.common.features.timeseries_features import get_holidays
  from greykite.common.python_utils import assert_equal
  from greykite.common.python_utils import update_dictionary
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.common.testing_utils import generate_df_with_reg_for_tests
label_desc: Use image node_id 1 for calling a global function with example usage: daily_data_reg() and returns: df