def should_be_excluded(name, exclude_patterns):
    """Check if a name should be excluded.

    Returns True if name matches at least one of the exclude patterns in
    the exclude_patterns list.

    """
    for pattern in exclude_patterns:
        if fnmatch.fnmatch(name, pattern):
            return True
    return False
Check if a name should be excluded.

    Returns True if name matches at least one of the exclude patterns in
    the exclude_patterns list.