from typing import Iterable
from typing import Sized


def max_sequence_length(sequences: Iterable[Sized]):
  """Computes the length of the longest sized element in an iterable.

  Args:
    sequences (Iterator): An iterator of some sized type

  Returns:
    max_len (int): The length of the longest sized type in sequences
  """
  max_len = 0
  for entry in sequences:
    if len(entry) > max_len:
      max_len = len(entry)

  return max_len