input: def autocomplete(input_text: str) -> List[str]:
      """ Generate an autocomplete system that predicts words based on the input text.
      The system should generate word candidates, filter them, and return the top 5 words 
      based on their rank.
      >>> autocomplete('hel')
      ['hello', 'help', 'hell', 'helpful', 'helmet']
      >>> autocomplete('ban')
      ['banana', 'band', 'ban', 'banish', 'bandage']
      """
output:     word_list = ['hello', 'help', 'hell', 'helpful', 'helmet', 'banana', 'band', 'ban', 'banish', 'bandage']
      filtered_words = [word for word in word_list if word.startswith(input_text)]
      filtered_words.sort(key=lambda x: len(x))
      return filtered_words[:5]