def METHOD_NAME():
    if bge is None:
        print("Skipping BGE modules!")
    for filename, modname, partial_ok in modules:
        if bge is None and modname.startswith("bge"):
            continue
        filepath = os.path.join(RST_DIR, filename)
        if not os.path.exists(filepath):
            raise Exception("%r not found" % filepath)
        doctree = rst_to_doctree_mini.parse_rst_py(filepath)
        __import__(modname)
        mod = sys.modules[modname]
        module_validate(filepath, mod, modname, doctree, partial_ok)