input: def autocomplete(input_text: str) -> List[str]:
      """Given an input text, this function predicts and returns the top 5 words 
      that are likely to complete the input text. It generates word candidates, 
      filters them, and ranks them before returning the top 5.
      >>> autocomplete("p")
      ['python', 'pandas', 'pip', 'print', 'post']
      >>> autocomplete("hel")
      ['help', 'hello', 'held', 'helps', 'helper']
      """
output:     word_candidates = ["python", "pandas", "pip", "print", "post", "help", "hello", "held", "helps", "helper"]
      filtered_words = [word for word in word_candidates if word.startswith(input_text)]
      sorted_words = sorted(filtered_words)
      return sorted_words[:5]