docs: def validate_bool_maybe_none(b):
      'Convert b to a boolean or raise'
      if isinstance(b, six.string_types):
          b = b.lower()
      if b is None or b == 'none':
          return None
      return validate_bool(b)