Returns a context manager that resets all state once exited.
See also
set_state
Context manager that sets the backend state.
get_state
Gets a state to be set by this context manager.