code: def test_create_pred_category_regressor():
      """Tests regressors are classified into the correct category,
      even their names matches some specific patterns such as "cp" or "lag".
      """
      pred_cols = [
          "Intercept",
          "ct1",
          "sin1_toy_yearly",
          "y_lag7",
          "ct1:sin1_toy_yearly",
          "C(Q('events_Chinese New Year'), levels=['', 'event'])[T.event]",
          "x",
          "weather_wghtd_avg_cld_cvr_tot_pct_max_mid",
          "media_total_spend_lag4",
      ]
      extra_pred_cols = [
          "x",
          "weather_wghtd_avg_cld_cvr_tot_pct_max_mid",
          "media_total_spend_lag4",
      ]
      pred_category = create_pred_category(
          pred_cols,
          extra_pred_cols,
          df_cols=[
              "ts",
              "y",
              "x",
              "weather_wghtd_avg_cld_cvr_tot_pct_max_mid",
              "media_total_spend_lag4",
          ],
      )
      expected_pred_category = {
          "intercept": ["Intercept"],
          "time_features": ["ct1", "ct1:sin1_toy_yearly"],
          "event_features": [
              "C(Q('events_Chinese New Year'), levels=['', 'event'])[T.event]"
          ],
          "trend_features": ["ct1", "ct1:sin1_toy_yearly"],
          "seasonality_features": [
              "sin1_toy_yearly",
              "ct1:sin1_toy_yearly",
          ],
          "lag_features": ["y_lag7"],
          "regressor_features": [
              "x",
              "weather_wghtd_avg_cld_cvr_tot_pct_max_mid",
              "media_total_spend_lag4",
          ],
          "interaction_features": ["ct1:sin1_toy_yearly"],
      }
      assert pred_category == expected_pred_category
  
file_path: greykite/greykite/tests/algo/common/test_col_name_utils.py
imports: import pandas
  from greykite.algo.common.col_name_utils import add_category_cols
  from greykite.algo.common.col_name_utils import create_pred_category
  from greykite.algo.common.col_name_utils import filter_coef_summary
  from greykite.algo.common.col_name_utils import simplify_changepoints
  from greykite.algo.common.col_name_utils import simplify_event
  from greykite.algo.common.col_name_utils import simplify_name
  from greykite.algo.common.col_name_utils import simplify_pred_cols
  from greykite.algo.common.col_name_utils import simplify_time_features
label_desc: Use image node_id 8 for calling a global function with example usage: test_create_pred_category_regressor() without return types