from typing import Iterable
from typing import Any
from typing import List


def transpose(m: Iterable[Iterable[Any]]) -> List[List[Any]]:
    """Transpose the first 2 dimensions of an iterable object with at least 2 dimensions.
    NOTE: only works when sublists are of arbitrary length."""
    return [list(i) for i in zip(*m)]