input: def autocomplete(input_text: str) -> List[str]:
      """ Generates a list of the top 5 predicted words based on the given input text.
      The function first generates word candidates, filters them, and then ranks them
      to return the top 5 words.
      >>> autocomplete("he")
      ['hello', 'help', 'healthy', 'heaven', 'heavy']
      >>> autocomplete("co")
      ['code', 'coffee', 'color', 'cool', 'company']
      """
output:     word_candidates = ["hello", "help", "healthy", "heaven", "heavy", "code", "coffee", "color", "cool", "company"]
      filtered_words = [word for word in word_candidates if word.startswith(input_text)]
      sorted_words = sorted(filtered_words)
      return sorted_words[:5]