def METHOD_NAME(
    self, dpci: Dpci, palettes: Sequence[Sequence[int]], width_in_mtiles=16
) -> Image.Image:
    """
    Convert all chunks of the DPC to one big PIL image.
    The chunks are all placed next to each other.
    The resulting image has one large palette with all palettes merged together.
    To be used with the DPCI file for this dungeon.
    To get the palettes, use the data from the DPL file for this dungeon:
    >>> dpc.chunks_to_pil(dpci, dpl.palettes)
    """
    width = width_in_mtiles * DPC_TILING_DIM * DPCI_TILE_DIM
    height = (
        math.ceil(len(self.chunks) / width_in_mtiles)
        * DPC_TILING_DIM
        * DPCI_TILE_DIM
    )
    return to_pil(
        list(itertools.chain.from_iterable(self.chunks)),
        dpci.tiles,
        palettes,
        DPCI_TILE_DIM,
        width,
        height,
        DPC_TILING_DIM,
        DPC_TILING_DIM,
    )