class_docstr: Context manager to temporarily set options in the `with` statement context.
  
  You need to invoke as ``option_context(pat, val, [(pat, val), ...])``.
  
  Examples
  --------
  >>> from pandas import option_context
  >>> with option_context('display.max_rows', 10, 'display.max_columns', 5):
  ...     pass
code: def __exit__(self, *args) -> None:
      if self.undo:
          for pat, val in self.undo:
              _set_option(pat, val, silent=True)
  
imports: from __future__ import annotations
  from contextlib import ContextDecorator, contextmanager
  import re
  from typing import TYPE_CHECKING, Any, Callable, Generic, NamedTuple, cast
  import warnings
  from pandas._typing import F, T
  from pandas.util._exceptions import find_stack_level
label_desc: Use image node_id 3 for calling the option_context obj's underlying member method code with example usage: obj.__exit__() without return types