code: def if_else(cond, body_fn, orelse_fn, vars):
      # back-compatibility
      if isinstance(cond, bool):
          v = cond
  
          def cond(*_):
              return v
  
      if callable(cond):
          cond = cond(**vars)
      else:
          cond = bool(cond)
      if cond:
          return body_fn(**vars)
      else:
          return orelse_fn(**vars)
  
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: body_fn, orelse_fn, v