@_HideInternalErrors
def VerifyOpResult(op_id, result):
  resultcheck_fn = _GetOpById(op_id).OP_RESULT

  if not resultcheck_fn:
    logging.warning("Opcode '%s' has no result type definition", op_id)
  elif not resultcheck_fn(result):
    raise VerificationError("Given result does not match result description"
                            " for opcode '%s': %s" % (op_id, resultcheck_fn))
Ticket #13839: select_related() should NOT cache None
dataset/ETHPy150Open ganeti/ganeti/lib/rapi/testutils.py/VerifyOpResult--crossover with--dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py/ReverseSelectRelatedTestCase.test_nullable_missing_reverse