class_docstr: Base class for context managers for a binary setting.
class_docstr_tok: ["Base","class","for","context","managers","for","a","binary","setting","."]
code: def __init__(self, state: bool = True) -> None:
      self.prev = self.__class__.on()
      self.state = state
  
imports: from __future__ import annotations
  from botorch.logging import LOG_LEVEL_DEFAULT, logger
label_desc: Use image node_id 4 to create a new _Flag object  with example: obj = _Flag(state)