def METHOD_NAME(
    mock_geo_names: mock.MagicMock,
    mock_data_dir: mock.MagicMock,
    mock_bq: mock.MagicMock,
):
    kwargs["demographic"] = "sex"
    kwargs["geographic"] = "county"
    datasource.write_to_bq('dataset', 'gcs_bucket', **kwargs)
    # loads in 4 files, 1 per Island Area
    assert mock_data_dir.call_count == 4
    # 2 fetches for public BQ names: county + state
    mock_geo_names.call_count == 2
    df, _dataset, table_name = mock_bq.call_args_list[0][0]
    assert table_name == "by_sex_territory_county_level"
    expected_df = pd.read_csv(
        os.path.join(GOLDEN_DIR, f'{table_name}.csv'), index_col=False, dtype=dtypes)
    assert_frame_equal(df, expected_df, check_dtype=False)