def METHOD_NAME(bg_writing) -> None:
    """
    Test that we can save numpy types in the data set
    """
    p = ParamSpecBase(name="p", paramtype="numeric")
    test_set = new_data_set("test-dataset")
    test_set.prepare(
        snapshot={},
        interdeps=InterDependencies_(standalones=(p,)),
        write_in_background=bg_writing,
    )
    idps = InterDependencies_(standalones=(p,))
    data_saver = DataSaver(
        dataset=test_set, write_period=0, interdeps=idps)
    dtypes: list[Callable] = [
        np.int8,
        np.int16,
        np.int32,
        np.int64,
        np.float16,
        np.float32,
        np.float64,
    ]
    for dtype in dtypes:
        data_saver.add_result(("p", dtype(2)))
    data_saver.flush_data_to_database()
    test_set.mark_completed()
    data = test_set.get_parameter_data("p")["p"]["p"]
    expected_data = np.ones(len(dtypes))
    expected_data[:] = 2
    np.testing.assert_array_equal(data, expected_data)