decode

Returns a valid PredictiveTestSelectionMode for data, null otherwise.