chunk_shape can be specified at runtime