from typing import Iterable
from typing import Sized


def are_same_length(collections: Iterable[Sized]) -> bool:
    """Checks if all arguments have the same length."""
    it = collections.__iter__()
    first = next(it, None)
    if first is not None:
        first = len(first)
        for elem in it:
            if len(elem) != first:
                return False
    return True