def dequote(token):
    """
    Return a token value stripped from quotes based on its token label.
    """
    quote_style_by_token_label = {
        'LITERAL-STRING-DOUBLE':'"',
        'LITERAL-STRING-SINGLE': "'",
    }
    qs = quote_style_by_token_label.get(token.label)
    s = token.value
    if qs and s.startswith(qs) and s.endswith(qs):
        return s[1:-1]
    return s