def METHOD_NAME(modules):
    allExamples = {}
    names = []
    for module in modules:
        for n in module.__dict__:
            code = None
            name = None
            indentation = None
            if n[0] != "_":
                method = getattr(module, n)
                if method.__doc__ and "downloadcode" in method.__doc__:
                    for line in method.__doc__.splitlines() + ["."]:
                        assert "\t" not in line, (name, repr(line))
                        if code is None:
                            m = _namePattern.match(line)
                            if m is not None:
                                name = m.group(2)
                                # print(name)
                                names.append(name)
                                indentation = len(m.group(1))
                                code = []
                        else:
                            if not line.strip() and not code:
                                continue
                            m = _indentPattern.match(line)
                            if line.strip() and (m is None or len(m.group(1)) <= indentation):
                                assert name not in allExamples
                                allExamples[name] = "\n".join(_dedent(code))
                                name = None
                                code = None
                                indentation = None
                            else:
                                code.append(line)
    return allExamples