input: from typing import List
  
  
  def sort_words_by_length_desc_alpha(my_string: str) -> List[str]:
      """ Sorts the words in a given string by their length in decreasing order.
      If two words have the same length, they are sorted alphabetically.
      >>> sort_words_by_length_desc_alpha("This is the string which is to be sorted")
      ['string', 'sorted', 'which', 'This', 'is', 'the', 'is', 'to', 'be']
      """
      words = my_string.split(' ')
      words_with_length = [(len(word), word) for word in words]
      words_with_length.sort(key=lambda x: (-x[0], x[1]))
      sorted_words = [i[1] for i in words_with_length]
      return sorted_words
output:     words = my_string.split(' ')
      words_with_length = [(len(word), word) for word in words]
      words_with_length.sort(key=lambda x: (-x[0], x[1]))
      sorted_words = [i[1] for i in words_with_length]
      return sorted_words