def GetNextConst(enum_id, value, bmask):
    if bmask < 0:
        bmask &= BADADDR
    return idaapi.get_next_enum_member(enum_id, value, bmask)
run command and process result
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetNextConst--crossover with--dataset/ETHPy150Open yspanchal/docli/docli/commands/image_actions.py/run_command