def METHOD_NAME(store: Union[str, MutableMapping],
                       insert_index: int,
                       time_slice: xr.Dataset,
                       chunk_sizes: Dict[str, int] = None):
    """
    Replace time slice in existing zarr dataset.
    :param store: A zarr store.
    :param insert_index: Time index
    :param time_slice: Time slice to insert
    :param chunk_sizes: desired chunk sizes
    """
    update_time_slice(store, insert_index, time_slice, 'replace', chunk_sizes=chunk_sizes)