Generalize
https://git.geomar.de/willi-rath/scientific-computing-use-cases/blob/master/tests/test_random_data_writes.py#L53
to allow fow a distributed cluster?