from typing import List
from typing import Dict
from typing import Tuple


def find_split_node(mst_wood: List[Dict], i: int) -> Tuple[int, int]:
    """
    Parameters
    ----------
    mst_wood : List[Dict]
    i : int
        Number of the stroke where one mst gets split

    Returns
    -------
    tuple :
        (mst index, node index)
    """
    for mst_index, mst in enumerate(mst_wood):
        if i in mst["strokes"]:
            return (mst_index, mst["strokes"].index(i))
    raise ValueError("%i was not found as stroke index." % i)