class_docstr: Test class for utils_tf
class_docstr_tok: ["Test","class","for","utils_tf"]
code: def test_clip_by_value_numpy_dtype(self):
      # Test that it's possible to use clip_by_value while mixing numpy and tf
      clip_min = np.zeros((1,))
      clip_max = tf.ones((1,))
      x = tf.ones((1,))
      # The point of this test is just to make sure the casting logic doesn't raise an exception
      utils_tf.clip_by_value(x, clip_min, clip_max)
  
file_path: cleverhans/cleverhans_v3.1.0/tests_tf/test_utils_tf.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  import tensorflow
  from cleverhans import utils_tf
  from cleverhans.devtools.checks import CleverHansTest
label_desc: Use image node_id 2 for calling the TestUtilsTF obj's underlying member method code with example usage: obj.test_clip_by_value_numpy_dtype() without return types