def short_dask_repr(array, show_dtype=True):
    """Similar to dask.array.DataArray.__repr__, but without
    redundant information that's already printed by the repr
    function of the xarray wrapper.
    """
    chunksize = tuple(c[0] for c in array.chunks)
    if show_dtype:
        return "dask.array<shape={}, dtype={}, chunksize={}>".format(
            array.shape, array.dtype, chunksize
        )
    else:
        return "dask.array<shape={}, chunksize={}>".format(array.shape, chunksize)