def METHOD_NAME(
    webserver_url,
    run_id,
) -> bool:
    variables = json.dumps({"runId": run_id})
    result = _execute_query_over_graphql(webserver_url, CAN_TERMINATE_RUN_QUERY, variables)
    print(f"Can terminate result: {result}")
    assert "data" in result and result["data"]["runOrError"]["__typename"] == "Run"
    return result["data"]["runOrError"]["canTerminate"]