def METHOD_NAME(self):
    """Test that sources are ClangFormat compliant."""
    directories = [
        'include',
        'src',
        'tests'
    ]
    skippedPaths = [
        'src/opendr/perception/panoptic_segmentation/efficient_ps/algorithm/EfficientPS',
        'src/opendr/perception/panoptic_segmentation/efficient_lps/algorithm/EfficientLPS',
        'src/opendr/planning/end_to_end_planning/ardupilot',
    ]
    skippedFiles = [
        'src/opendr/perception/object_detection_2d/retinaface/algorithm/cython/gpu_nms.cpp',
        'src/opendr/perception/object_detection_2d/retinaface/algorithm/cython/anchors.c',
        'src/opendr/perception/object_detection_2d/retinaface/algorithm/cython/bbox.c',
        'src/opendr/perception/object_detection_2d/retinaface/algorithm/cython/cpu_nms.c',
    ]
    skippedDirectories = [
        'build',
        'python'
    ]
    extensions = ['c', 'h', 'cpp', 'hpp', 'cc', 'hh', 'c++', 'h++', 'vert', 'frag']
    modified_files = os.path.join(self.OPENDR_HOME, 'tests', 'sources', 'modified_files.txt')
    sources = []
    if os.path.isfile(modified_files):
        with open(modified_files, 'r') as file:
            for line in file:
                line = line.strip()
                extension = os.path.splitext(line)[1][1:].lower()
                if extension not in extensions:
                    continue
                found = False
                for directory in directories:
                    if line.startswith(directory):
                        found = True
                        break
                if not found:
                    continue
                found = False
                for directory in skippedPaths + skippedFiles:
                    if line.startswith(directory):
                        found = True
                        break
                if found:
                    continue
                for directory in skippedDirectories:
                    currentDirectories = line.split(os.sep)
                    if directory in currentDirectories:
                        found = True
                if found:
                    continue
                sources.append(line.replace('/', os.sep))
    else:
        for directory in directories:
            path = self.OPENDR_HOME + os.sep + directory.replace('/', os.sep)
            for rootPath, dirNames, fileNames in os.walk(path):
                shouldContinue = False
                for path in skippedPaths:
                    if rootPath.startswith(self.OPENDR_HOME + os.sep + path.replace('/', os.sep)):
                        shouldContinue = True
                        break
                for directory in skippedDirectories:
                    currentDirectories = rootPath.replace(self.OPENDR_HOME, '').split(os.sep)
                    if directory in currentDirectories:
                        shouldContinue = True
                        break
                if shouldContinue:
                    continue
                for fileName in fileNames:
                    extension = os.path.splitext(fileName)[1][1:].lower()
                    if extension not in extensions:
                        continue
                    path = os.path.normpath(os.path.join(rootPath, fileName))
                    skipFile = False
                    for file in skippedFiles:
                        if os.path.normpath((self.OPENDR_HOME + os.sep + file.replace('/', os.sep))) == path:
                            skipFile = True
                            break
                    if not skipFile:
                        sources.append(path)
    curdir = os.getcwd()
    os.chdir(self.OPENDR_HOME)
    for source in sources:
        diff = ''
        with open(source, encoding='utf8') as file:
            try:
                diff += "\n".join(
                    difflib.context_diff(
                        self._runClangFormat(source).decode("utf-8").splitlines(),
                        file.read().splitlines(),
                    )
                )
            except UnicodeDecodeError:
                self.assertTrue(False, msg='utf-8 decode problem in %s' % source)
            self.assertTrue(
                len(diff) == 0,
                msg='Source file "%s" is not compliant with ClangFormat:\n\nDIFF:%s' % (source, diff)
            )
    os.chdir(curdir)