How did smugglers put bags of pills inside onions?

https://youtu.be/gUPAIPJmOSk

This is like the magic trick where the magician cuts open a lemon and reveals a signed dollar bill inside. I know how that trick is done. But how did the smugglers get the drugs into these onions, which don't look like they were tampered with?