input: Write a function to create a natural language processing application in Python that extracts the top 10 most frequent words from a given text. The function should take a single string argument representing the text and return a list of tuples, where each tuple contains a word and its frequency in the text.
  def extract_top_words(text):
      from collections import Counter
      words = text.split()
      counter = Counter(words)
      top_words = counter.most_common(10)
      return top_words
  
  assert extract_top_words("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") == [('dolor', 1), ('Lorem', 1), ('ipsum', 1), ('amet', 1), ('consectetur', 1), ('adipiscing', 1), ('elit,', 1), ('sed', 1), ('do', 1), ('eiusmod', 1)]
output: def extract_top_words(text):
      from collections import Counter
      words = text.split()
      counter = Counter(words)
      top_words = counter.most_common(10)
      return top_words