input: def extract_top_frequent_words(text: str) -> List[Tuple[str, int]]:
      """
      Given a text, extract the top 10 most frequent words and return them as a list of tuples, 
      where each tuple contains a word and its frequency.
      
      >>> text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
      >>> extract_top_frequent_words(text)
      [('dolor', 1), ('Lorem', 1), ('ipsum', 1), ('amet', 1), ('consectetur', 1), ('adipiscing', 1), ('elit,', 1), ('sed', 1), ('do', 1), ('eiusmod', 1)]
      """
output:     words = text.split()
      word_count = {}
      for word in words:
          if word in word_count:
              word_count[word] += 1
          else:
              word_count[word] = 1
      
      sorted_words = sorted(word_count.items(), key=lambda x: x[1], reverse=True)
      
      return sorted_words[:10]