def __init__(self, results: List[EvalResult], mode: Text=constants.UNKNOWN_EVAL_MODE):
    supported_modes = [constants.DATA_CENTRIC_MODE, constants.MODEL_CENTRIC_MODE]
    if (mode not in supported_modes):
        raise ValueError(((('Mode ' + mode) + ' must be one of ') + Text(supported_modes)))
    self._results = results
    self._mode = mode
def __init__(self, results: List[EvalResult], mode: Text=constants.UNKNOWN_EVAL_MODE):
    supported_modes = [constants.DATA_CENTRIC_MODE, constants.MODEL_CENTRIC_MODE]
    if (mode not in supported_modes):
        raise ValueError(((('Mode ' + mode) + ' must be one of ') + Text(supported_modes)))
    self._results = results
    self._mode = mode