input: from collections import Counter
  
  def get_top_words(text: str, top_n: int) -> Counter:
      """Extracts the top 'top_n' most frequent words from the given text.
      >>> print(get_top_words("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", 10))
      [('dolor', 1), ('Lorem', 1), ('ipsum', 1), ('amet', 1), ('consectetur', 1), ('adipiscing', 1), ('elit,', 1), ('sed', 1), ('do', 1), ('eiusmod', 1)]
      """
      words = text.split()
      counter = Counter(words)
      return counter.most_common(top_n)
output:     words = text.split()
      counter = Counter(words)
      return counter.most_common(top_n)