input: Write a function to summarize the Twitter data and visually represent it using matplotlib. The function should process the Twitter data to extract relevant fields like tweet author, date of tweet, text, number of likes, and number of retweets. Then, it should generate three plots: one for the distribution of tweets by author, one for the number of likes per tweet, and one for the number of retweets per tweet. The function should return None at the end.
  def summarize_twitter_data(twitter_data):
      import matplotlib.pyplot as plt
  
      # Process the Twitter data to extract relevant fields
      authors = [tweet['author'] for tweet in twitter_data]
      num_tweets = [authors.count(author) for author in set(authors)]
      tweets = [tweet['text'] for tweet in twitter_data]
      num_likes = [tweet['likes'] for tweet in twitter_data]
      num_retweets = [tweet['retweets'] for tweet in twitter_data]
  
      # Plot the tweet authors
      plt.figure(1)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of tweets')
      plt.title('Tweet Author Summary')
      plt.bar(authors, num_tweets)
      plt.show()
  
      # Plot the number of likes
      plt.figure(2)
      plt.xlabel('Tweets')
      plt.ylabel('Number of Likes')
      plt.title('Number of Likes Summary')
      plt.bar(tweets, num_likes)
      plt.show()
  
      # Plot the number of retweets
      plt.figure(3)
      plt.xlabel('Tweets')
      plt.ylabel('Number of Retweets')
      plt.title('Number of Retweets Summary')
      plt.bar(tweets, num_retweets)
      plt.show()
  
      return None
output: def summarize_twitter_data(twitter_data):
      import matplotlib.pyplot as plt
  
      # Process the Twitter data to extract relevant fields
      authors = [tweet['author'] for tweet in twitter_data]
      num_tweets = [authors.count(author) for author in set(authors)]
      tweets = [tweet['text'] for tweet in twitter_data]
      num_likes = [tweet['likes'] for tweet in twitter_data]
      num_retweets = [tweet['retweets'] for tweet in twitter_data]
  
      # Plot the tweet authors
      plt.figure(1)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of tweets')
      plt.title('Tweet Author Summary')
      plt.bar(authors, num_tweets)
      plt.show()
  
      # Plot the number of likes
      plt.figure(2)
      plt.xlabel('Tweets')
      plt.ylabel('Number of Likes')
      plt.title('Number of Likes Summary')
      plt.bar(tweets, num_likes)
      plt.show()
  
      # Plot the number of retweets
      plt.figure(3)
      plt.xlabel('Tweets')
      plt.ylabel('Number of Retweets')
      plt.title('Number of Retweets Summary')
      plt.bar(tweets, num_retweets)
      plt.show()
  
      return None