def remove_unscored(labels, unscored):
    """ Remove unscored labels. See https://github.com/physionetchallenges/evaluation-2021 """
    diagnoses = list(map(int, labels))
    cleaned = []
    for d in diagnoses:
        if d not in unscored['SNOMEDCTCode'].unique():
            cleaned.append(d)
    cleaned = list(map(str, cleaned))
    return cleaned