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 cudf import option_context
  >>> with option_context('mode.pandas_compatible', True, 'default_float_bitwidth', 32):
  ...     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","cudf","import","option_context",">",">",">","with","option_context","(","'mode.pandas_compatible","'",",","True",",","'default_float_bitwidth","'",",","32",")",":","...","pass"]
code: def __init__(self, *args) -> None:
      if len(args) % 2 != 0:
          raise ValueError(
              "Need to invoke as option_context(pat, val, "
              "[(pat, val), ...])."
          )
  
      self.ops = tuple(zip(args[::2], args[1::2]))
  
imports: import os
  import textwrap
  from collections.abc import Container
  from contextlib import ContextDecorator
  from dataclasses import dataclass
  from typing import Any, Callable, Dict, Optional
label_desc: Use image node_id 1 to create a new option_context object from inherited base classes: ContextDecorator with example: obj = option_context()