def get_cgi_parameter_bool(form: cgi.FieldStorage, key: str) -> bool:
    """
    Extracts a boolean parameter from a CGI form, on the assumption that
    ``"1"`` is ``True`` and everything else is ``False``.
    """
    return is_1(get_cgi_parameter_str(form, key))
Extracts a boolean parameter from a CGI form, on the assumption that
    ``"1"`` is ``True`` and everything else is ``False``.