code: def cond(pred, true_fn, false_fn):
      """A version of tf.cond that tries to evaluate the condition."""
      v = get_static_value(pred)
      if v is None:
          return tf.cond(pred, true_fn, false_fn)
      if v:
          return true_fn()
      else:
          return false_fn()
  
imports: import funcsigs
  import numpy
  import tensorflow.compat.v2
  from trax.tf_numpy.numpy_impl import arrays
  from trax.tf_numpy.numpy_impl import dtypes
label_desc: Use image node_id 19 for calling a global function with example usage: cond(pred, true_fn, false_fn) and returns: tf, true_fn, false_fn