import random


def baseline_classifier(Xtest, Ytest):
    """Baseline by randomly assigning a label to each document."""
    label_list = [label for label in set(Ytest)]  # random.choice cannot index a set, so needs to be a list
    baseline = [random.choice(label_list) for sent in Xtest]

    return baseline