class_docstr: Flag for printing verbose warnings.
  
  To make sure a warning is only raised in debug mode:
      >>> if debug.on():
      >>>     warnings.warn(<some warning>)
class_docstr_tok: ["Flag","for","printing","verbose","warnings",".","To","make","sure","a","warning","is","only","raised","in","debug","mode",":",">",">",">","if","debug.on","(",")",":",">",">",">","warnings.warn","(","<","some","warning",">",")"]
code: def _set_state(cls, state: bool) -> None:
      cls._state = state
  
imports: from __future__ import annotations
  from botorch.logging import LOG_LEVEL_DEFAULT, logger
label_desc: Use image node_id 1 for calling the debug obj's underlying member method code with example usage: obj._set_state(cls, state) without return types