What to do with the cork in a restaurant?

What to do when the cork is presented to you in a restaurant. Do you smell it? Do you hand it back?