input: 
  def autocomplete(input_text: str) -> List[str]:
      """Given an input string, generate word candidates that complete the input text.
      The function should filter and rank the candidates, returning the top 5 most 
      relevant words.
      
      >>> autocomplete("c")
      ['cat', 'car', 'cap', 'cart', 'call']
      >>> autocomplete("d")
      ['dog', 'door', 'dent', 'drive', 'dark']
      """
  
output:     word_list = ['cat', 'car', 'cap', 'cart', 'call', 'dog', 'door', 'dent', 'drive', 'dark']
      filtered_words = [word for word in word_list if word.startswith(input_text)]
      return sorted(filtered_words)[:5]