def METHOD_NAME(
    query: Union[ProcessableQuery, CompositeQuery[Entity]],
    formatted: TExpression,
) -> None:
    formatted_query = format_query(query)  # type: ignore
    assert formatted_query == formatted
    # make sure there are no empty lines
    assert [line for line in formatted_query if not line] == []