def case(pred_fn_pairs, default=None, exclusive=False, name='smart_case'):
  """
  """
  return control_flow_ops._case_helper(  # pylint: disable=protected-access
      cond, pred_fn_pairs, default, exclusive, name, allow_python_preds=True)