def check_version(cver, optype, ever):
    """
    Simple version check.
    Note: There is more complexity to comparing version (PEP440).
    However the use cases in cellxgene are limited, and do not require a general solution.
    """

    if optype == "==":
        return cver == ever
    if optype == "!=":
        return cver != ever
    if optype == ">=":
        return cver >= ever
    if optype == ">":
        return cver > ever
    if optype == "<=":
        return cver <= ever
    if optype == "<":
        return cver < ever

    print(f"Error, optype not handled: {optype}")
    return False