code: def converged_all(converged, failed):
      """Condition to stop when all batch members have converged or failed."""
      return tf.reduce_all(converged | failed)
  
file_path: probability/tensorflow_probability/python/optimizer/bfgs_utils.py
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.optimizer.linesearch.hager_zhang import hager_zhang
label_desc: Use image node_id 2 for calling a global function with example usage: converged_all(converged, failed) and returns: tf