code: def test_get_probs(self):
      import tensorflow as tf
  
      model = KerasModelWrapper(self.model)
      x = tf.placeholder(tf.float32, shape=(None, 100))
      preds = model.get_probs(x)
  
      x_val = np.random.rand(2, 100)
      tf.global_variables_initializer().run(session=self.sess)
      p_val = self.sess.run(preds, feed_dict={x: x_val})
      self.assertTrue(np.allclose(np.sum(p_val, axis=1), 1, atol=1e-6))
      self.assertTrue(np.all(p_val >= 0))
      self.assertTrue(np.all(p_val <= 1))
  
file_path: cleverhans/cleverhans_v3.1.0/tests_tf/test_utils_keras.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import unittest
  import numpy
  from tensorflow import keras
  from cleverhans.utils_keras import KerasModelWrapper
label_desc: Use image node_id 5 for calling the TestKerasModelWrapper obj's underlying member method code with example usage: obj.test_get_probs() without return types