code: def if_exp(cond, if_true, if_false, expr_repr):
      if tensors.is_dense_tensor(cond):
          return _tf_if_exp(cond, if_true, if_false, expr_repr)
      else:
          return _py_if_exp(cond, if_true, if_false)
  
imports: from tensorflow.python.autograph.operators import control_flow
  from tensorflow.python.autograph.utils import tensors
  from tensorflow.python.ops import cond
label_desc: Use image node_id 1 for calling a global function with example usage: if_exp(cond, if_true, if_false, expr_repr) and returns: _tf_if_exp, _py_if_exp