input: def autocomplete(input_text):
      """
      Develop a Python program to create an autocomplete system that predicts words based on the input text.
      The function should generate word candidates based on the input text, filter them, rank them, and return the top 5 predictions.
      
      >>> autocomplete("hel")
      ['hello', 'help', 'held', 'helper', 'hell']
      >>> autocomplete("go")
      ['good', 'going', 'gone', 'goal', 'god']
      """
output:     word_list = ['hello', 'help', 'held', 'helper', 'hell', 'good', 'going', 'gone', 'goal', 'god']
      filtered_words = [word for word in word_list if word.startswith(input_text)]
      ranked_words = sorted(filtered_words, key=lambda word: (-len(word), word))
      return ranked_words[:5]