TD interview question

What is a decorator in Python? Give an example to time a function,