def METHOD_NAME(
    mock_data_dir: mock.MagicMock,
    mock_bq: mock.MagicMock,
):
    datasource = CDCHIVData()
    datasource.write_to_bq('dataset', 'gcs_bucket', demographic="sex", geographic="state")
    assert mock_bq.call_count == 1
    (sex_state_df, _dataset, table_name), _col_types = mock_bq.call_args_list[0]
    assert table_name == "sex_state_time_series"
    expected_sex_state_df = pd.read_csv(GOLDEN_DATA['sex_state'], dtype=EXP_DTYPE)
    assert_frame_equal(sex_state_df, expected_sex_state_df, check_like=True)