code: def cond(pred, true_fn, false_fn):
      """Conditionally applies `true_fn` or `false_fn`.
  
      Args:
          pred: Boolean scalar type
          true_fn: Callable returning the output for the `pred == True` case.
          false_fn: Callable returning the output for the `pred == False` case.
  
      Returns:
          The output of either `true_fn` or `false_fn` depending on pred.
      """
      return Cond()(pred, true_fn, false_fn)
  
imports: import numpy
  from keras import backend
  from keras.api_export import keras_export
  from keras.backend import KerasTensor
  from keras.backend import any_symbolic_tensors
  from keras.ops.operation import Operation
  from keras.utils import traceback_utils
label_desc: Use image node_id 13 for calling a global function with example usage: cond(pred, true_fn, false_fn) and returns: Cond