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 __init__(self, *args):
      if not (len(args) % 2 == 0 and len(args) >= 2):
          raise ValueError(
              "Need to invoke as"
              " option_context(pat, val, [(pat, val), ...])."
          )
  
      self.ops = list(zip(args[::2], args[1::2]))
  
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 1 to create a new option_context object from inherited base classes: object with example: obj = option_context()