def _is_ignored(
        library_name,
        ignored):
    """Checks if the library name is in the list of ignored libraries.

    Args:
        library_name: the library name to check
        ignored: the list of ignored libraries
    Returns:
        True if the library is found in the ignored list or False otherwise.
    """
    for ignored_postfix in ignored:
        if library_name.endswith(ignored_postfix):
            return True
    return False