input: 
  def autocomplete(input_text: str) -> List[str]:
      """ Develop a Python program to create an autocomplete system that predicts words based on the input text.
      The function should generate word candidates, filter them based on some criteria, and then rank them to return the top 5 predictions.
      >>> autocomplete("hel")
      ['help', 'hello', 'helm', 'helmet', 'helper']
      >>> autocomplete("cat")
      ['cat', 'category', 'cater', 'cats', 'cattle']
      """
  
output:     word_candidates = ["help", "hello", "helm", "helmet", "helper", "cat", "category", "cater", "cats", "cattle"]
      filtered_words = [word for word in word_candidates if word.startswith(input_text)]
      ranked_words = sorted(filtered_words, key=lambda word: (len(word), word))
      return ranked_words[:5]