結果 : check if value is valid enum python