def METHOD_NAME(**kwargs: Any) -> HttpRequest:
    _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
    _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
    api_version: Literal["2021-12-01-preview"] = kwargs.pop(
        "api_version", _params.pop("api-version", "2021-12-01-preview")
    )
    content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
    accept = _headers.pop("Accept", "application/json")
    # Construct URL
    _url = kwargs.pop("template_url", "/providers/Microsoft.Education/redeemInvitationCode")
    # Construct parameters
    _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
    # Construct headers
    if content_type is not None:
        _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
    _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
    return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)