code: def if_else(cond, body_fn, orelse_fn, vars):
      # back-compatibility
      if isinstance(cond, bool):
          v = cond
  
          def cond(*_):
              return v
  
      cond = bool(cond(**vars))
      return tf.cond(
          cond, lambda: body_fn(**vars), lambda: orelse_fn(**vars)
      )
  
imports: import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: if_else(cond, body_fn, orelse_fn, vars) and returns: tf, v