def METHOD_NAME(cube_store: ChunkStore, name: str,
              index: Tuple[int, ...]) -> bytes:
    data = np.zeros(cube_store.chunks, dtype=np.uint64)
    data_view = data.ravel()
    if data_view.base is not data:
        raise ValueError('view expected')
    if data_view.size < cube_store.ndim * 2:
        raise ValueError('size too small')
    for i in range(cube_store.ndim):
        j1 = cube_store.chunks[i] * index[i]
        j2 = j1 + cube_store.chunks[i]
        data_view[2 * i] = j1
        data_view[2 * i + 1] = j2
    return data.tobytes()