def validate_seeded_answers(answers, options, algo):
if algo['<STR_LIT:name>'] == '<STR_LIT>':<EOL><INDENT>return validate_seeded_answers_simple(answers, options, algo)<EOL><DEDENT>elif algo['<STR_LIT:name>'] == '<STR_LIT>':<EOL><INDENT>return validate_seeded_answers_random(answers)<EOL><DEDENT>else:<EOL><INDENT>raise UnknownChooseAnswerAlgorithm()<EOL><DEDENT>
Validate answers based on selection algorithm

This is called when instructor setup the tool and providing seeded answers to the question.
This function is trying to validate if instructor provided enough seeds for a give algorithm.
e.g. we require 1 seed for each option in simple algorithm and at least 1 seed for random
algorithm. Because otherwise, the first student won't be able to see the answers on the
second step where he/she suppose to compare and review other students answers.

Args:
    answers (list): list of dict that contain seeded answers
    options (dict): all options that should exist in the answers
    algo (str): selection algorithm

Returns:
    None if successful, otherwise error message