code: def bool(name, default=None, allow_none=False, fallback=None):
      
      value = read(name, default, allow_none, fallback=fallback)
      if isinstance(value, builtins.bool):
          return value
      elif isinstance(value, builtins.int):
          return True if value > 0 else False
      elif value is None and allow_none:
          return None
      else:
          value_str = builtins.str(value).lower().strip()
          return _strtobool(value_str)
docs: Get a boolean based environment value or the default.
  
      Args:
          name: The environment variable name
          default: The default value to use if no environment variable is found
          allow_none: If the return value can be `None` (i.e. optional)