def is_excluded(root, excludes):
    sep = os.path.sep
    if not root.endswith(sep):
        root += sep
    for exclude in excludes:
        if root.startswith(exclude):
            return True
    return False
Check if the directory is in the exclude list.
dataset/ETHPy150Open Netflix/security_monkey/generate_docs.py/is_excluded