code: def extractCatCols(df, x):
      cat_pred = []
      col_types = df.types
      for name in x:
          if col_types[name] == "enum":
              cat_pred.append(name)
      return cat_pred
  
file_path: h2o-3/h2o-py/tests/testdir_algos/modelselection/pyunit_PUBDEV_8675_modelselection_fail.py
imports: import sys
  import math
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.model_selection import H2OModelSelectionEstimator
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
label_desc: Use image node_id 5 for calling a global function with example usage: extractCatCols(df, x) and returns: cat_pred