code: def change(self, **kwargs):
          
  
          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)
docs: 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