def _GetOpById(op_id):
  """Tries to get an opcode class based on its C{OP_ID}.

  """
  try:
    return opcodes.OP_MAPPING[op_id]
  except __HOLE__:
    raise VerificationError("Unknown opcode ID '%s'" % op_id)
dataset/ETHPy150Open ganeti/ganeti/lib/rapi/testutils.py/_GetOpById