input: 下面是一个描述任务的指令。写出适当完成请求的响应。
  
  ### 指令：
  编写一个 Python 程序来可视化总结 Twitter 数据。
  
  ### 输入：
  Twitter 数据是一个包含数据的推文流，如：推文作者，推文日期，文本内容，点赞数，转发数。
  
  ### 输出：
  
  from typing import List, Dict
  import matplotlib.pyplot as plt
  
  def summarize_twitter_data(tweets: List[Dict[str, any]]) -> None:
      """
      Visually summarize Twitter data by plotting tweet authors, number of likes, and number of retweets.
      
      >>> summarize_twitter_data([
      ...     {'author': 'Alice', 'date': '2023-10-01', 'text': 'Hello', 'likes': 10, 'retweets': 5},
      ...     {'author': 'Bob', 'date': '2023-10-02', 'text': 'Hi', 'likes': 5, 'retweets': 2},
      ...     {'author': 'Alice', 'date': '2023-10-03', 'text': 'Hey', 'likes': 3, 'retweets': 1}
      ... ])
      """
      authors = []
      num_tweets = []
      num_likes = []
      num_retweets = []
      
      for tweet in tweets:
          if tweet['author'] not in authors:
              authors.append(tweet['author'])
              num_tweets.append(1)
              num_likes.append(tweet['likes'])
              num_retweets.append(tweet['retweets'])
          else:
              idx = authors.index(tweet['author'])
              num_tweets[idx] += 1
              num_likes[idx] += tweet['likes']
              num_retweets[idx] += tweet['retweets']
      
      plt.figure(1)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of tweets')
      plt.title('Tweet Author Summary')
      plt.bar(authors, num_tweets)
      plt.show()
  
      plt.figure(2)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of Likes')
      plt.title('Number of Likes Summary')
      plt.bar(authors, num_likes)
      plt.show()
  
      plt.figure(3)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of Retweets')
      plt.title('Number of Retweets Summary')
      plt.bar(authors, num_retweets)
      plt.show()
output:     plt.figure(1)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of tweets')
      plt.title('Tweet Author Summary')
      plt.bar(authors, num_tweets)
      plt.show()
  
      plt.figure(2)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of Likes')
      plt.title('Number of Likes Summary')
      plt.bar(authors, num_likes)
      plt.show()
  
      plt.figure(3)
      plt.xlabel('Tweet Authors')
      plt.ylabel('Number of Retweets')
      plt.title('Number of Retweets Summary')
      plt.bar(authors, num_retweets)
      plt.show()