You cannot. GameShark is a physical cartridge for Game Boy / Game Boy Color / Game Boy Advance / N64 / PS1 / PS2 / Dreamcast. The Nintendo DS has no compatible slot (DS slot is for DS cards; GBA slot is for GBA carts only—GameShark GBA works there for GBA games, not DS games).
For modern cheating: Flashcart + TWiLight Menu++ + usrcheat.dat is the standard.