pipe_replace_step function

Replace pipeline step