code: def parse_optional_bool(v: str) -> Optional[bool]:
      s = str(v).lower()
      if s in {"0", "no", "false"}:
          return False
      if s in {"1", "yes", "true"}:
          return True
      if s in {"auto", "none"}:
          return None
      raise ValueError("invalid optional bool: {v!r}")
  
imports: from __future__ import annotations
  import logging
  from dataclasses import dataclass
  from typing import Any, Callable, ClassVar, Dict, Iterable, Mapping, MutableMapping, Optional, Set, Union
label_desc: Use image node_id 1 for calling the Option obj's underlying member method code with example usage: obj.parse_optional_bool(v) and returns: False, True, None