code: def _check_prob_and_prob_vector(predictions):
      """
      Check that the predictionsa are either probabilities of prob-vectors.
      """
      from .._deps import numpy
  
      ptype = predictions.dtype
      import array
  
      if ptype not in [float, numpy.ndarray, array.array, int]:
          err_msg = (
              "Input `predictions` must be of numeric type (for binary "
          )
          err_msg += (
              "classification) or array (of probability vectors) for "
          )
          err_msg += "multiclass classification."
          raise TypeError(err_msg)
  
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 1 for calling a global function with example usage: _check_prob_and_prob_vector(predictions) without return types