input: from typing import List
  
  def analyze_sentiment(text: str) -> str:
      """ Analyzes the sentiment of a given text and categorizes it into positive, negative, or neutral sentiments.
      >>> analyze_sentiment("I love this product!")
      'positive'
      >>> analyze_sentiment("I hate this product!")
      'negative'
      >>> analyze_sentiment("This is a neutral statement.")
      'neutral'
      """
output:     positive_words = ["love", "great", "excellent", "happy", "amazing"]
      negative_words = ["hate", "bad", "terrible", "sad", "awful"]
      
      text_lower = text.lower()
      words = text_lower.split()
      
      positive_count = sum(1 for word in words if word in positive_words)
      negative_count = sum(1 for word in words if word in negative_words)
      
      if positive_count > negative_count:
          return 'positive'
      elif negative_count > positive_count:
          return 'negative'
      else:
          return 'neutral'