<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def change(self, **kwargs):
 """Override some attributes of the config in a specific context. A simple usage example:: with pylatex.config.active.change(indent=False):
 # Do stuff where indent should be False Args ---- kwargs: Key value pairs of the default attributes that should be overridden """


        old_attrs = {}

        for k, v in kwargs.items():
            old_attrs[k] = getattr(self, k, v)
            setattr(self, k, v)

        yield self  # allows with ... as ...

        for k, v in old_attrs.items():
            setattr(self, k, v)