Python functools.wraps Function
The functools.wraps function in Python’s functools module is a decorator that updates the wrapper function to look more like the wrapped function. This is particularly useful when writing decorators, as it helps preserve the metadata of the original function.