from typing import List
from typing import Tuple


def list_to_tuple(list_: List) -> Tuple:
    """
    Recursively transforms a list of lists into tuples of tuples
    Parameters
    ----------
    list_:
        (nested) list

    Returns
    -------
    (nested) tuple
    """
    return tuple(
        list_to_tuple(item) if isinstance(item, list) else item for item in list_
    )