def METHOD_NAME(self):
    all_tilemaps = list(itertools.chain.from_iterable(self.chunks))
    data = bytearray(len(all_tilemaps) * 2)
    for i, tm in enumerate(all_tilemaps):
        write_u16(data, tm.to_int(), i * 2)
    return data