def undecorate(func):
orig_call_wrapper = lambda x: x<EOL>for call_wrapper, unwrap in SUPPORTED_DECORATOR.items():<EOL><INDENT>if isinstance(func, call_wrapper):<EOL><INDENT>func = unwrap(func)<EOL>orig_call_wrapper = call_wrapper<EOL>break<EOL><DEDENT><DEDENT>return orig_call_wrapper, func<EOL>
Returns the decorator and the undecorated function of given object.