To slip past the guards in the Earth Kingdom library in Avatar: The Last Airbender on DS, you'll want to use stealth mode.
If you're new to it, a helpful trick is to let yourself get caught a few times on purpose. Each time shows you the guards' patterns, so you learn exactly when to enter and exit stealth mode. Once you've got their timing down, sneaking through becomes much easier.