code: def assert_nondecreasing(x, summarize=None, message=None, name=None):
      """Assert (batched) elements in `x` are non decreasing."""
  
      with tf.name_scope(name or "assert_non_decreasing"):
          if message is None:
              message = "`Tensor` contained decreasing values."
          x = tf.convert_to_tensor(x)
          x_ = tf.get_static_value(x)
          if x_ is not None:
              if not np.all(x_[..., :-1] <= x_[..., 1:]):
                  raise ValueError(message)
              return x
          return assert_util.assert_less_equal(
              x[..., :-1],
              x[..., 1:],
              summarize=summarize,
              message=message,
          )
  
imports: import functools
  import hashlib
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import reparameterization
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 16 for calling a global function with example usage: assert_nondecreasing(x, summarize, message, name) and returns: assert_util, x