code: def set_enable(target, enable=True, advice_ids=None):
          
  
          advices = get_advices(target)
  
          for advice in advices:
              try:
                  if isinstance(Advice) \
                          and (advice_ids is None or advice.uuid in advice_ids):
                      advice.enable = enable
              except ValueError:
                  pass
docs: Enable or disable all target Advices designated by input advice_ids.
  
          If advice_ids is None, apply (dis|en)able state to all advices.