This question has options. How would someone go about accomplishing this goal?
To attach the cord of a lamp socket to a piece of plumbing pipe, you can

Available choices: 1. Use a hot glue gun to keep the cord flat and out of sight. 2. Use a hot clothes iron to keep the cord flat and out of sight.
1.