code: def handle_hooks(stage, hooks, provider, context, dump, outline):
      
      if not outline and not dump and hooks:
          util.handle_hooks(
              stage=stage,
              hooks=hooks,
              provider=provider,
              context=context
          )
docs: Handle pre/post hooks.
  
      Args:
          stage (str): The name of the hook stage - pre_build/post_build.
          hooks (list): A list of dictionaries containing the hooks to execute.
          provider (:class:`stacker.provider.base.BaseProvider`): The provider
              the current stack is using.
          context (:class:`stacker.context.Context`): The current stacker
              context.
          dump (bool): Whether running with dump set or not.
          outline (bool): Whether running with outline set or not.