Capgemini Interview Question

How to write user defined decorator where you can pass parameter for the decorator itself?