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
  --------
  
  >>> with option_context('display.max_rows', 10, 'display.max_columns', 5):
  ...     ...
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","--","--","--","--",">",">",">","with","option_context","(","'display.max_rows","'",",","10",",","'display.max_columns","'",",","5",")",":","...","..."]
code: def __enter__(self):
      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 collections import namedtuple
  from contextlib import contextmanager
  import re
  import warnings
  import pandas.compat
  from pandas.compat import lmap, map, u
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