def METHOD_NAME(cls, value, allowed_values):
    if allowed_values == "":
        return True;
    allowed_set = allowed_values.split(',')
    for allowed_value in allowed_set:
        allowed_value = allowed_value.strip()
        if value == allowed_value:
            return True
    return False