What`s the purpose of Pipe locations and how to define them?

locationPipeExample

Can someone explain whats the purpose of Pipe locations and how they should be defined. I cant reproduce any of the examples and the sample script linked to the documentation is not for the example shown on the picture included in the documentation (see attachment).

Eventually I want to be able to create bodies like the one shown in the second attachment: