input: 
  def sort_words_by_length(my_string: str) -> str:
      """This function takes a string and returns a new string
      where words are sorted by their length in decreasing alphabetical order.
      
      >>> sort_words_by_length("This is the string which is to be sorted")
      "sorted be which the string is This"
      """
  
output:     words = my_string.split()
      words.sort(key=lambda x: (-len(x), x))
      return ' '.join(words)