def _validate_category(self, category):
        try:
            if category.type_id != self.parsed_obj["category"]:
                raise exception.OCCISchemaMismatch(
                    expected=category.type_id,
                    found=self.parsed_obj["category"]
                )
        except __HOLE__:
            raise exception.OCCIMissingType(
                type_id=category.type_id)
dataset/ETHPy150Open openstack/ooi/ooi/occi/validator.py/Validator._validate_category