Chinese scammers have gotten good at abusing those "codes" by having a list of "known good" codes and printing them on multiple units. And because those holographic codes some companies used are printed in China, the scammers just use the same equipment during the night shift.
https://www.bunniestudios.com/blog/2010/microsd-card-failure...
There are methods of doing so that identify multiple, harder to falsify things.
One that I have seen is HMAC(serial||SKU) as a datamatrix/QR, laser-etched onto the top silkscreen and burned into a PROM.