Darktrace interview question

Implement a decorator in Python