code: def test_filter_coef_summary():
      coef_summary = pd.DataFrame(
          {
              "Pred_col": [
                  "Intercept",
                  "cp1_2018_09_02_00",
                  "sin1_toy_yearly",
                  "y_lag7",
                  "ct1:sin1_toy_yearly",
                  "C(Q('events_Chinese New Year'), levels=['', 'event'])[T.event]",
                  "x",
              ]
          }
      )
      pred_category = create_pred_category(
          coef_summary["Pred_col"].tolist(), [], ["ts", "y"]
      )
      x = filter_coef_summary(
          coef_summary=coef_summary,
          pred_category=pred_category,
          is_intercept=True,
          is_time_feature=False,
          is_trend=True,
          is_interaction=False,
      )
      pd.testing.assert_frame_equal(
          x,
          pd.DataFrame(
              {
                  "Pred_col": ["Intercept", "cp1_2018_09_02_00"],
                  "is_intercept": [1, 0],
                  "is_time_feature": [0, 0],
                  "is_event": [0, 0],
                  "is_trend": [0, 1],
                  "is_seasonality": [0, 0],
                  "is_lag": [0, 0],
                  "is_regressor": [0, 0],
                  "is_interaction": [0, 0],
              }
          ),
      )
  
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 9 for calling a global function with example usage: test_filter_coef_summary() without return types