def METHOD_NAME(
    self, METHOD_NAME: Callable[[], None], rom: NintendoDSRom, config: Pmd2Data
) -> None:
    if config.game_version == GAME_VERSION_EOS:
        if config.game_region == GAME_REGION_US:
            string_id = STRING_ID_US
            overlay_size = OVERLAY13_INITAL_SIZE_US
        if config.game_region == GAME_REGION_EU:
            string_id = STRING_ID_EU
            overlay_size = OVERLAY13_INITAL_SIZE_EU
        if config.game_region == GAME_REGION_JP:
            string_id = STRING_ID_JP
            overlay_size = OVERLAY13_INITAL_SIZE_JP
    # Change dialogue
    for lang in config.string_index_data.languages:
        filename = "MESSAGE/" + lang.filename
        bin_before = rom.getFileByName(filename)
        strings = StrHandler.deserialize(bin_before)
        strings.strings[string_id - 1] = get_locales().translate(
            MESSAGE, lang.locale.replace("-", "_")
        )
        bin_after = StrHandler.serialize(strings)
        rom.setFileByName(filename, bin_after)
    table = loadOverlayTable(rom.arm9OverlayTable, lambda x, y: bytes())
    ov = table[13]
    ov.ramSize = overlay_size + OVERLAY13_ADD_SIZE
    rom.arm9OverlayTable = saveOverlayTable(table)
    ov13 = rom.files[ov.fileID]
    rom.files[ov.fileID] = ov13[:overlay_size]
    try:
        METHOD_NAME()
    except RuntimeError as ex:
        raise ex