Avito interview question

Implement a decorator that preserves a function metadata