def GetConstEx(enum_id, value, serial, bmask):
    if bmask < 0:
        bmask &= BADADDR
    return idaapi.get_enum_member(enum_id, value, serial, bmask)
Get id of constant
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetConstEx