def _get_cand_values(candidate, key_table):
<EOL>from fonduer.features.models import FeatureKey<EOL>from fonduer.supervision.models import GoldLabelKey, LabelKey<EOL>if key_table == FeatureKey:<EOL><INDENT>return candidate.features<EOL><DEDENT>elif key_table == LabelKey:<EOL><INDENT>return candidate.labels<EOL><DEDENT>elif key_table == GoldLabelKey:<EOL><INDENT>return candidate.gold_labels<EOL><DEDENT>else:<EOL><INDENT>raise ValueError(f"<STR_LIT>")<EOL><DEDENT>
Get the corresponding values for the key_table.