code: def select_valid_features(data, feature_columns, valid_types):
      valid_features = []
  
      for f in feature_columns:
          if data[f].dtype in valid_types:
              valid_features.append(f)
          else:
              _logging.warning(
                  "Warning: Column "
                  + f
                  + " is excluded due to"
                  + " invalid column type "
                  + str(data[f].dtype)
              )
      return valid_features
  
file_path: turicreate/src/python/turicreate/toolkits/_feature_engineering/_internal_utils.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import copy
  from turicreate.util import _raise_error_if_not_of_type
  import logging
  import os
  from six.moves.urllib.request import urlretrieve
  import zipfile
label_desc: Use image node_id 1 for calling a global function with example usage: select_valid_features(data, feature_columns, valid_types) and returns: valid_features