code: def _assert_all_finite(x, message, name=None):
      if not np.all(np.isfinite(x)):
          raise ValueError(
              "Non-finite value detected. {}".format(message)
          )
  
imports: import numpy
  import six
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import dtype
  from tensorflow_probability.python.internal.backend.numpy import ops
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_all_finite(x, message, name) without return types