@contextlib.contextmanager<EOL>def option(current_kwargs, **kwargs):
tmp_kwargs = dict((key, current_kwargs.get(key)) for key, value in kwargs.items())<EOL>current_kwargs.update(kwargs)<EOL>yield<EOL>current_kwargs.update(tmp_kwargs)<EOL>
Context manager for temporarily setting a keyword argument and
then restoring it to whatever it was before.