def METHOD_NAME(path):
    pathToModule = dict()
    fileProg = re.compile(r"itk-module.cmake")
    moduleProg = re.compile(".*itk_module[^(]*\\(([^ \n]*)", re.S)
    for root, dirs, files in os.walk(path):
        for f in files:
            if fileProg.match(f):
                fid = open(root + os.sep + f)
                contents = fid.read()
                m = moduleProg.match(contents)
                if m:
                    moduleName = m.group(1)
                    parts = root.split(os.sep)
                    pathToModule[
                        parts[len(parts) - 2] + parts[len(parts) - 1]
                    ] = moduleName
                fid.close()
    return pathToModule