I'm having a similar problem to this one. This answers the question when you make your own decorator.
However, when you just import a decorator, what to do then?
Ideally it would looks something like this
import functools
@functools.wraps()
@functools.lru_cache()
def func(x):
"This is a function"
print('Do something')