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. If the text is empty, the function should return an empty list. Use the `Counter` class from the `collections` module to count the word frequencies.
  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)]
  assert extract_top_words("") == []
  assert extract_top_words("Python is great and Python is fantastic, Python is amazing.") == [('Python', 3), ('is', 3), ('and', 1), ('fantastic,', 1), ('amazing.', 1)]
output: def extract_top_words(text):
      if not text:
          return []
      from collections import Counter
      words = text.split()
      word_counts = Counter(words)
      return word_counts.most_common(10)