input: def sentiment_analyzer(text: str) -> dict:
      """Analyzes the sentiment of a given text and returns the polarity scores.
      >>> sentiment_analyzer("I love this product! It's amazing.")
      {'neg': 0.0, 'neu': 0.472, 'pos': 0.528, 'compound': 0.6696}
      >>> sentiment_analyzer("I hate this product! It's terrible.")
      {'neg': 0.511, 'neu': 0.489, 'pos': 0.0, 'compound': -0.6486}
      """
output:     from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
      analyzer = SentimentIntensityAnalyzer()
      sentiment_scores = analyzer.polarity_scores(text)
      return sentiment_scores