def METHOD_NAME(
    self, df_type, x_range, y_range, query, local_dict
):
    bsl = BaseStackedLine("x", ["y"])
    bsl.chart_type = "stacked_lines"
    bsl.x_range = x_range
    bsl.y_range = y_range
    bsl.box_selected_range = local_dict
    df = initialize_df(df_type, {"x": [1, 2, 2], "y": [3, 4, 5]})
    dashboard = cuxfilter.dashboard.DashBoard(
        dataframe=cuxfilter.DataFrame.from_dataframe(df)
    )
    bsl.compute_query_dict(
        dashboard._query_str_dict, dashboard._query_local_variables_dict
    )
    assert (
        dashboard._query_str_dict[
            f"x_{'_'.join(['y'])}_stacked_lines_{bsl.title}"
        ]
        == query
    )
    for key in local_dict:
        assert (
            dashboard._query_local_variables_dict[key] == local_dict[key]
        )