Similar to DatasetWriter but with writer.add_point(data, stack_index).
DatasetWriter
writer.add_point(data, stack_index)