from typing import List
from typing import Callable


def find_pattern(patterns: List[str], filter_func: Callable[[str], bool]) -> str:
    """Find the pattern defined by `filter_func` in the list of `patterns`"""
    find_result = [*filter(filter_func, patterns)]
    assert len(find_result) == 1
    return find_result[0]