def METHOD_NAME(
    route: ViewRoute,
    hide_names_requested: bool = False,
    urlmacros: dict[str, str] | None = None,
    **kwargs: Any,
) -> ViewContext:
    return ViewContext(
        route,
        False,
        hide_names_requested=hide_names_requested,
        urlmacros=get_urlmacros_from_dict(urlmacros)
        if urlmacros
        else get_urlmacros_from_request(),
        **kwargs,
    )