I would get a 2 wire extension cord and cut the end off that has the female end on it, so you end up with a pigtail that has the male end on it. Just strip both the wires on the cord and attach them to wires on the socket. I would use wire nuts and wrap them with electrical tape for security. On lighting it doesn't matter which wire goes where.

Hope this helps

Rocklobster4040