def METHOD_NAME(
    value: List[GroundTilesetMapping], overlay11bin: bytearray, config: Pmd2Data
) -> None:
    """
    Sets the  list.
    The length of the list must exactly match the original ROM's length (see get_dungeon_list).
    """
    block = config.bin_sections.overlay11.data.LEVEL_TILEMAP_LIST
    assert block.length is not None
    expected_length = int(block.length / 8)
    if len(value) != expected_length:
        raise ValueError(
            f"The list must have exactly the length of {expected_length} entries."
        )
    for i, entry in enumerate(value):
        overlay11bin[
            block.address + i * 8 : block.address + (i + 1) * 8
        ] = entry.to_bytes()