code: def assertAllFinite(self, x):
      is_finite = np.isfinite(x)
      all_true = np.ones_like(is_finite, dtype=np.bool_)
      self.assertAllEqual(all_true, is_finite)
  
imports: import collections
  import importlib
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops.distributions import special_math
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 1 for calling the NdtriTest obj's underlying member method code with example usage: obj.assertAllFinite(x) without return types