Darktrace Interview Question

Implement a decorator in Python