input: def analyze_sentiment(text: str) -> str:
      """ Analyzes the sentiment of the given text and categorizes it into 
      positive, negative, and neutral sentiments.
      >>> analyze_sentiment("I love this movie!")
      'positive'
      >>> analyze_sentiment("I hate this weather.")
      'negative'
      >>> analyze_sentiment("It is an average day.")
      'neutral'
      """
output:     positive_words = ["love", "good", "great", "awesome", "happy"]
      negative_words = ["hate", "bad", "terrible", "awful", "sad"]
      
      text = text.lower()
      words = text.split()
      
      positive_count = sum(word in positive_words for word in words)
      negative_count = sum(word in negative_words for word in words)
      
      if positive_count > negative_count:
          return 'positive'
      elif negative_count > positive_count:
          return 'negative'
      else:
          return 'neutral'