def get_type(array):
    """Return type of arrays contained within the dask array chunks."""
    try:
        datatype = type(array._meta)  # Check chunk type backing dask array
    except AttributeError:
        datatype = type(array)  # For all non-dask arrays
    return datatype