input: Write a function to analyze the sentiment of a given text and categorize it into positive, negative, or neutral sentiments. If the count of negative sentences is greater than the positive, return 'negative'; if positive is greater than negative, return 'positive'; otherwise, return 'neutral'. If the input text is empty, return 'neutral'.
  assert analyze_sentiment("I love this movie, it's fantastic!") == 'positive'
  assert analyze_sentiment("This movie was terrible, I hated it.") == 'negative'
  assert analyze_sentiment("The weather is neither good nor bad today.") == 'neutral'
  assert analyze_sentiment("") == 'neutral'
output: def analyze_sentiment(text):
      if not text:
          return 'neutral'
      
      sentences = text.split('.')
      positive_count = sum(1 for s in sentences if 'love' in s or 'fantastic' in s or 'good' in s)
      negative_count = sum(1 for s in sentences if 'terrible' in s or 'hated' in s or 'bad' in s)
      
      if negative_count > positive_count:
          return 'negative'
      elif positive_count > negative_count:
          return 'positive'
      else:
          return 'neutral'