def find_class_match(name, sub_vals):
    """
    find the Define-XML CT term based on the class name for the dataset
    :param name: string; name of the class associated with a dataset in the Library
    :param sub_vals: dictionary of Define-XML class terms (submission values) to look-up by name
    :return: string; return the Define-XML Class term
    """
    for sv, synonyms in sub_vals.items():
        if name in synonyms or name.upper() in synonyms or name.upper() == sv:
            return sv
        elif name == "General Observations":
            return name.upper()
    return name