input: Write a function to visually summarize the Twitter data using matplotlib. The function should take a list of tweets as input, where each tweet is a dictionary containing fields like 'author', 'date', 'text', 'likes', and 'retweets'. The function should generate three bar plots: one summarizing the number of tweets per author, one summarizing the number of likes per tweet, and one summarizing the number of retweets per tweet. The function should display the plots using plt.show().
  
  from collections import Counter
  import matplotlib.pyplot as plt
  
  def summarize_twitter_data(tweets):
      authors = [tweet['author'] for tweet in tweets]
      likes = [tweet['likes'] for tweet in tweets]
      retweets = [tweet['retweets'] for tweet in tweets]
      
      author_counts = Counter(authors)
      num_tweets = list(author_counts.values())
      authors_list = list(author_counts.keys())
      
      # Plot the tweet authors
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of tweets')
      plt.title('Tweet Author Summary')
      plt.bar(authors_list, num_tweets)
      plt.show()
      
      # Plot the number of likes
      plt.xlabel('Tweets')
      plt.ylabel('Number of Likes')
      plt.title('Number of Likes Summary')
      plt.bar(range(len(tweets)), likes)
      plt.show()
      
      # Plot the number of retweets
      plt.xlabel('Tweets')
      plt.ylabel('Number of Retweets')
      plt.title('Number of Retweets Summary')
      plt.bar(range(len(tweets)), retweets)
      plt.show()
  
  assert summarize_twitter_data([{'author': 'A', 'date': '2023-01-01', 'text': 'Hello', 'likes': 10, 'retweets': 5}, {'author': 'B', 'date': '2023-01-02', 'text': 'Hi', 'likes': 5, 'retweets': 2}, {'author': 'A', 'date': '2023-01-03', 'text': 'Hey', 'likes': 8, 'retweets': 3}]) is None
  assert summarize_twitter_data([]) is None
output: from collections import Counter
  import matplotlib.pyplot as plt
  
  def summarize_twitter_data(tweets):
      authors = [tweet['author'] for tweet in tweets]
      likes = [tweet['likes'] for tweet in tweets]
      retweets = [tweet['retweets'] for tweet in tweets]
      
      author_counts = Counter(authors)
      num_tweets = list(author_counts.values())
      authors_list = list(author_counts.keys())
      
      # Plot the tweet authors
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of tweets')
      plt.title('Tweet Author Summary')
      plt.bar(authors_list, num_tweets)
      plt.show()
      
      # Plot the number of likes
      plt.xlabel('Tweets')
      plt.ylabel('Number of Likes')
      plt.title('Number of Likes Summary')
      plt.bar(range(len(tweets)), likes)
      plt.show()
      
      # Plot the number of retweets
      plt.xlabel('Tweets')
      plt.ylabel('Number of Retweets')
      plt.title('Number of Retweets Summary')
      plt.bar(range(len(tweets)), retweets)
      plt.show()