def header_elements(fieldname, fieldvalue):
    if not fieldvalue:
        return []

    result = []
    for element in fieldvalue.split(","):
        if fieldname.startswith("Accept") or fieldname == 'TE':
            hv = AcceptElement.from_str(element)
        else:
            hv = HeaderElement.from_str(element)
        result.append(hv)

    return list(reversed(sorted(result)))
Test to see if the number and type of genotype calls on the
dataset/ETHPy150Open clips/pattern/pattern/server/cherrypy/cherrypy/lib/httputil.py/header_elements--crossover with--dataset/ETHPy150Open arq5x/gemini/gemini/tool_qc.py/check_sex