code: def _supervised_evaluation_error_checking(targets, predictions):
      """
      Perform basic error checking for the evaluation metrics. Check
      types and sizes of the inputs.
      """
      _raise_error_if_not_sarray(targets, "targets")
      _raise_error_if_not_sarray(predictions, "predictions")
      if len(targets) != len(predictions):
          raise _ToolkitError(
              "Input SArrays 'targets' and 'predictions' must be of the same length."
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate
  from turicreate.toolkits._internal_utils import _raise_error_if_not_sarray, _check_categorical_option_type
  from turicreate.toolkits._main import ToolkitError
label_desc: Use image node_id 2 for calling a global function with example usage: _supervised_evaluation_error_checking(targets, predictions) without return types