def METHOD_NAME(dsize: int, split_sizes: List[int]) -> List[int]:
    """
    Convert partition sizes to absolute values
    Args:
        dsize - Size of dataset.
        split_sizes - Sizes for each split. One can be set to -1 to assign all
            remaining data.
    """
    none_idx = None
    split_sizes = list(split_sizes)
    psum = 0
    for i in range(len(split_sizes)):
        s = split_sizes[i]
        if s is None or s < 0:
            if none_idx is None:
                none_idx = i
            else:
                raise ValueError(
                    f"Only one partition may be undefined (negative or None). "
                    f"Partition sizes: {split_sizes}"
                )
        else:
            if s < 1:
                split_sizes[i] = int(math.floor(s * dsize))
            psum += split_sizes[i]
    if none_idx is not None:
        remaining = dsize - psum
        split_sizes[none_idx] = int(remaining)
    return split_sizes