input: def sentiment_analyzer(text: str) -> dict:
      """ Analyzes the sentiment of a given text.
      >>> sentiment_analyzer("I love this product! It's amazing.") 
      {'neg': 0.0, 'neu': 0.254, 'pos': 0.746, 'compound': 0.8316}
      >>> sentiment_analyzer("This is the worst experience I've ever had.") 
      {'neg': 0.625, 'neu': 0.375, 'pos': 0.0, 'compound': -0.6249}
      """
output:     from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
      analyzer = SentimentIntensityAnalyzer()
      sentiment_scores = analyzer.polarity_scores(text)
      return sentiment_scores