def _get_index(self, res_id):
        try:
            return map(itemgetter('resource_id'), self.states).index(res_id)
        except __HOLE__:
            return -1
dataset/ETHPy150Open comodit/synapse-agent/synapse/states_manager.py/StatesManager._get_index