def _compare_schemes(self, expected_type, actual):
        actual_scheme, actual_term = helpers.decompose_type(actual)
        if expected_type.scheme != actual_scheme:
            return False
        try:
            if expected_type.term != actual_term:
                return False
        except __HOLE__:
            # ignore the fact the type does not have a term
            pass
        return True
dataset/ETHPy150Open openstack/ooi/ooi/occi/validator.py/Validator._compare_schemes