code: def validate_feature_types(feature_names, feature_types, data):
      for col_name in feature_names:
          if data[col_name].dtype != feature_types[col_name]:
              err = (
                  "Column '"
                  + col_name
                  + "' was of type "
                  + str(feature_types[col_name])
                  + " when fitted using .fit() but is of type "
                  + str(data[col_name].dtype)
                  + "during .transform()"
              )
              raise ValueError(err)
  
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 5 for calling a global function with example usage: validate_feature_types(feature_names, feature_types, data) without return types