def set_policy_attack_strength(self, policy_ids, attack_strength):
        """Set the attack strength for the given policies."""
        for policy_id in policy_ids:
            self.logger.debug('Setting strength for policy {0} to {1}'.format(policy_id, attack_strength))
            result = self.zap.ascan.set_policy_attack_strength(policy_id, attack_strength)
            if result != 'OK':
                raise ZAPError('Error setting strength for policy with ID {0}: {1}'.format(policy_id, result))
Set the attack strength for the given policies.