def METHOD_NAME(
    url: str,
    site: Site,
    user: Optional[JustfixUser] = None,
    session: Optional[Dict[str, Any]] = None,
) -> Optional[LambdaResponse]:
    """
    This function can be used by the server to render static content in the
    lambda service. Normally such content is delivered directly to a user's
    browser, but sometimes we want to access it in the server so we can
    do other things with it, e.g. generate a PDF to send to an API, or
    render an HTML email.
    """
    request = GraphQLStaticRequest(user=user, session=session)
    initial_props = create_initial_props_for_lambda(
        site=site,
        url=url,
        locale=get_language_from_url_or_default(url),
        initial_session=get_initial_session(request),
        origin_url=get_site_origin(site),
    )
    lr = run_react_lambda_with_prefetching(initial_props, request)
    if not (lr.is_static_content and lr.status == 200):
        logger.error(
            "Expected (is_static_content=True, status=200) but got "
            f"(is_static_content={lr.is_static_content}, status={lr.status}) for "
            f"{url}"
        )
        return None
    return lr