code: def assert_finite(array):
      if not np.isfinite(array).all():
          raise AssertionError(
              "array was not all finite. %s" % array[:15]
          )
  
imports: from absl import logging
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.bijectors import reshape
  from tensorflow_probability.python.distributions import uniform
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.gradient import batch_jacobian
label_desc: Use image node_id 1 for calling a global function with example usage: assert_finite(array) without return types