def deprecated_option(option_name, message='<STR_LIT>'):
def caller(func, *args, **kwargs):<EOL><INDENT>if option_name in kwargs:<EOL><INDENT>warnings.warn(<EOL>'<STR_LIT>'.format(option_name, message),<EOL>DeprecationWarning,<EOL>stacklevel=<NUM_LIT:3><EOL>)<EOL><DEDENT>return func(*args, **kwargs)<EOL><DEDENT>return decorator(caller)<EOL>
Marks an option as deprecated.