Hello.
I would start by drawing circles, then divide them into segments, then move segments to create the “random” look.
Then draw a perpendicular circle and use the follow me tool to create the “pipe”.
There is a useful extension called “lines2tubes” than can automate the extrude step.