def check_special_value(expected, value):
    """Check if value equals to Null, Not null, empty or expected value."""
    if expected == "NULL":
        return value is None
    elif expected == "NOT_NULL":
        return value is not None
    elif expected == "EMPTY":
        return value == ""
    elif expected == "NOT_EMPTY":
        return value is not None and len(value) > 0
    else:
        return value == expected