<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def deallocate_fw_dev(self, fw_id):
 """Release the firewall resource. """

        for cnt in self.res:
            if fw_id in self.res.get(cnt).get('fw_id_lst'):
                self.res[cnt]['used'] = self.res[cnt]['used'] - 1
                self.res.get(cnt).get('fw_id_lst').remove(fw_id)
                return