code: def set_policy_strength(zap_helper, policy_ids, strength):
      
      if not policy_ids:
          policy_ids = _get_all_policy_ids(zap_helper)
  
      with zap_error_handler():
          zap_helper.set_policy_attack_strength(policy_ids, strength)
  
      console.info('Set attack strength to {0}.'.format(strength))
docs: Set the attack strength for policies.