def decorated(*args, **kwargs):
    print('this function is decorated.')
return func(*args, **kwargs)
return decorated

@task
@custom_decorator
def some_function():
    print('this is function')
How to add a custom decorator to a fabric task