def consists_of(seq, types):
    """
    Check that the all elements from the "seq" argument (sequence) are among the types passed as the "types" argument.

    @param seq: The sequence which elements are to be typed.


    @param types: A tuple of types to check.
    @type types: tuple

    @return: Whether the check succeeded.
    @rtype: bool

    >>> consists_of([5, 6, 7], int)
    True
    >>> consists_of([5, 6, 7, 'abc'], int)
    False
    >>> consists_of([5, 6, 7, 'abc'], (int, str))
    True
    """
    return all(isinstance(element, types) for element in seq)