input: 
  def generate_ngrams(text: str, window_size: int) -> dict:
      """Generate n-grams of the given text with a specified window size.
      >>> generate_ngrams("The quick brown fox jumps over the lazy dog", 3)
      {'the quick brown': 3, 'quick brown fox': 2, 'over the lazy': 1, 'brown fox jumps': 1, 'fox jumps over': 1, 'the lazy dog': 1, 'jumps over the': 1, 'quick brown fox jumps': 1}
      """
  
output:     ngrams = {}
      words = text.split()
      for i in range(len(words) - window_size + 1):
          ngram = ' '.join(words[i:i+window_size])
          if ngram in ngrams:
              ngrams[ngram] += 1
          else:
              ngrams[ngram] = 1
      return ngrams