Decorator



from some_module import some_decorator

@some_decorator
def f(...):
    ...


def f(...):
    ...


f = some_decorator(f)