<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure_printing(**kwargs):
 """Context manager for temporarily changing the printing system. This takes the same parameters as :func:`init_printing` Example: A + B A^(1) + B^(1) """

    freeze = init_printing(_freeze=True, **kwargs)
    try:
        yield
    finally:
        for obj, attr_map in freeze.items():
            for attr, val in attr_map.items():
                setattr(obj, attr, val)