hook
A hook function that is invoked after the stage completes processing.
The hook is a function that takes a PipelineHooks object and returns a function, which takes a Pipeline and the output O of this stage. This allows for custom behavior to be executed at specific points in the pipeline.
If null, no hook will be invoked after this stage.