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
class_docstr_tok: ["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 __enter__(self) -> None:
      self.undo = [
          (pat, _get_option(pat, silent=True)) for pat, val in self.ops
      ]
  
      for pat, val in self.ops:
          _set_option(pat, val, silent=True)
  
imports: from __future__ import annotations
  from contextlib import ContextDecorator, contextmanager
  import re
  from typing import Any, Callable, Generator, Generic, Iterable, NamedTuple, cast
  import warnings
  from pandas._typing import F, T
  from pandas.util._exceptions import find_stack_level
label_desc: Use image node_id 2 for calling the option_context obj's underlying member method code with example usage: obj.__enter__() without return types