Don't do this!
Some people are going to dangerous (and illegal) measures to avoid hard wiring lights! People with no electrical training or background are modifying lights so they can plug them into a socket!
https://thehappyhousie.porch.com/how-to-turn-a-hard-wired-light-fixture-into-a-plug-in/
https://www.maisondepax.com/2016/07/turn-hard-wire-light-fixture-plug.html
All that effort and risk to avoid electrician costs and hassle!? There's an easier, safer way...