code: def _check_x(x):
      """
      Makes sure an `x` argument is a valid numpy dataset.
      """
      if not isinstance(x, np.ndarray):
          raise TypeError(
              "x must be a numpy array. Typically x contains "
              "the entire test set inputs."
          )
  
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 7 for calling a global function with example usage: _check_x(x) without return types