def _GetOpById(op_id):
  try:
    return opcodes.OP_MAPPING[op_id]
  except KeyError:
    raise VerificationError("Unknown opcode ID '%s'" % op_id)
Tries to get an opcode class based on its C{OP_ID}.
dataset/ETHPy150Open ganeti/ganeti/lib/rapi/testutils.py/_GetOpById