def METHOD_NAME(
    mock_bq: mock.MagicMock,
    mock_csv: mock.MagicMock,
    mock_counties: mock.MagicMock
):
    kwargs["demographic"] = "age"
    veraIncarcerationCounty.write_to_bq('dataset', 'gcs_bucket', **kwargs)
    # writes only 1 table per demo breakdown
    assert mock_bq.call_count == 1
    assert mock_csv.call_count == 1
    assert mock_counties.call_count == 1
    df, _, table_name = mock_bq.call_args_list[0][0]
    assert table_name == "by_age_county_time_series"
    expected_df = pd.read_csv(
        GOLDEN_DATA['age_county'], dtype=dtypes)
    assert_frame_equal(df, expected_df, check_dtype=False)