input: Write a function to analyze the sentiment of given text. The function should categorize the text into positive, negative, and neutral sentiments. If the function returns 'negative', it indicates that the text has more negative sentiment overall. If the function returns 'positive', it indicates that the text has more positive sentiment overall. If the function returns 'neutral', it indicates that the text has equal amounts of positive and negative sentiments. If the input text is empty, the function should return 'neutral' by default.
  
  assert analyze_sentiment("I love this movie!") == 'positive'
  assert analyze_sentiment("I hate this movie!") == 'negative'
  assert analyze_sentiment("This movie is average.") == 'neutral'
  assert analyze_sentiment("") == 'neutral'
output: def analyze_sentiment(text):
      if not text:
          return 'neutral'
      
      positive_words = ["love", "like", "good", "great", "excellent"]
      negative_words = ["hate", "dislike", "bad", "terrible", "awful"]
      
      positive_count = sum(1 for word in text.split() if word.lower() in positive_words)
      negative_count = sum(1 for word in text.split() if word.lower() in negative_words)
      
      if positive_count > negative_count:
          return 'positive'
      elif negative_count > positive_count:
          return 'negative'
      else:
          return 'neutral'