code: def _is_rising(val):
      """Checks that the value is finite and the derivative is positive.
  
      This is the stopping condition for the loop U3, and the condition for U1.  The
      check that the value is finite is necessary to ensure that the derivative is
      meaningful.
  
      Args:
        val: A namedtuple with fields `f` and `df` giving the value and gradient
          of the univariate objective, respectively.  May be batched.
  
      Returns:
        rising: A Boolean Tensor giving whether this point is a suitable right
          end-point for an interval subject to secant subdivision.
      """
      return tf.math.is_finite(val.f) & (val.df >= 0.0)
  
file_path: probability/tensorflow_probability/python/optimizer/linesearch/internal/hager_zhang_lib.py
imports: import collections
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import broadcast_util
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 11 for calling a global function with example usage: _is_rising(val) and returns: unknown