code: def _check_y(y):
      """
      Makes sure a `y` argument is a vliad numpy dataset.
      """
      if not isinstance(y, np.ndarray):
          raise TypeError(
              "y must be numpy array. Typically y contains "
              "the entire test set labels. Got "
              + str(y)
              + " of type "
              + str(type(y))
          )
  
imports: from distutils.version import LooseVersion
  import warnings
  import numpy
  from six.moves import range
  import tensorflow
  import cleverhans
  from cleverhans import canary
  from cleverhans.utils import create_logger
  from cleverhans.utils_tf import infer_devices
label_desc: Use image node_id 8 for calling a global function with example usage: _check_y(y) without return types