from typing import Sequence


def sequence_predicate(matcher, value, pattern):
    """Return True if `pattern` is instance of Sequence and `value` is instance of
    type of `pattern`.

    """
    return isinstance(pattern, Sequence) and isinstance(value, type(pattern))