def __unwrap_match_request(request: dict):
    """
    Unwrap the given "match questions" request into a tuple of Python objects.

    Args:
        request: A JSON object describing a "match questions" request

    Returns: A tuple (question,question_set) where question is a string and question_set is an iterable
    collection of questions and their ids (given as dicts {"question_id":XXX,"question":YYY}).

    """
    # request = json.loads(request)
    question = request["question"]
    question_set = request["compare_questions"]

    return question, question_set