<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_policy_strength(zap_helper, policy_ids, strength):
 """Set the attack strength for policies."""

    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))