input: 
  from typing import List, Tuple
  from collections import Counter
  
  def extract_top_words(text: str, num_words: int) -> List[Tuple[str, int]]:
      """Extracts the top 'num_words' most frequent words from a given text.
      
      >>> text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
      >>> extract_top_words(text, 10)
      [('dolor', 1), ('Lorem', 1), ('ipsum', 1), ('amet', 1), ('consectetur', 1), ('adipiscing', 1), ('elit,', 1), ('sed', 1), ('do', 1), ('eiusmod', 1)]
      """
      # Split the text into individual words
      words = text.split()
      
      # Create a counter object
      counter = Counter(words)
      
      # Get the top 'num_words' most frequent words
      top_words = counter.most_common(num_words)
      
      return top_words
  
output:     # Split the text into individual words
      words = text.split()
      
      # Create a counter object
      counter = Counter(words)
      
      # Get the top 'num_words' most frequent words
      top_words = counter.most_common(num_words)
      
      return top_words