def get_dead_hosting_devices_info(self):
        res = []
        for hd_id in self.backlog_hosting_devices:
            hd = self.backlog_hosting_devices[hd_id]['hd']
            if hd['hd_state'] == 'Dead':
                res.append(hd['id'])
        return res
Replace substrings of a string using a dictionary.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/cfg_agent/device_status.py/DeviceStatus.get_dead_hosting_devices_info--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/xml/sax/saxutils.py/__dict_replace