code: def _env_get_bool(name, default):
      env = os.getenv(name)
      if env is None:
          return default
      as_a_int = _env_get_int(name, None)
      env = env.lower().strip()
      if env == "true" or env == "on" or as_a_int:
          return True
      if env == "false" or env == "off" or as_a_int == 0:
          return False
      return default
  
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 2 for calling a global function with example usage: _env_get_bool(name, default) and returns: default, default, True, False