Nicest way to emulate function decorators?

Create a function which does your thing and use it.