def METHOD_NAME(dsets, attrs):
    """Write data to h5 given an open h5py.File."""
    fname = os.path.join(TEST_OUTPUTS, "io_h5__test_write_h5_file.h5")
    with h5py.File(fname, "w") as file:
        write_h5(file, dsets, attrs)