code: def with_actions(actions_or_group_name, actions=None):
      
      group = None
      if isinstance(actions_or_group_name, str):
          group = actions_or_group_name
      else:
          actions = actions_or_group_name
      def decorator(f):
          if isinstance(f, WithActionsDecorator):
              dec = f
          else:
              dec = WithActionsDecorator(f)
          dec.actions.extend(load_actions(actions, group=group))
          return dec
      return decorator
docs: Executes the list of actions before/after the function
      Actions should be a list where items are action names as
      strings or a dict. See frasco.actions.loaders.load_action().