def METHOD_NAME():
    """Find resource examples."""
    curr_path = os.path.dirname(os.path.realpath(os.path.expanduser(__file__)))
    base_path = os.path.abspath(os.path.join(curr_path, "..", "..", ".."))
    index_page = os.path.join(base_path, "web", "apps", "browser", "rpc_server.html")
    default_plugin_page = os.path.join(base_path, "web", "apps", "browser", "rpc_plugin.html")
    resource_files = [
        ("/", os.path.join(base_path, "web", "dist", "tvmjs.bundle.js")),
        ("/", os.path.join(base_path, "web", "dist", "wasm", "tvmjs_runtime.wasi.js")),
        ("/", index_page),
    ]
    allow_format = ("json", "bin", "js", "wasm", "html", "css", "model")
    # recursively apend things in www, up to two levels
    resource_bases = [
        os.path.join(base_path, "web", "dist", "www"),
        os.path.join(base_path, "web", ".ndarray_cache"),
    ]
    for base in resource_bases:
        if not os.path.isdir(base):
            continue
        for full_name in glob.glob("%s/**" % base, recursive=True):
            fname = os.path.relpath(full_name, base)
            dirname = os.path.dirname(fname)
            fmt = fname.rsplit(".", 1)[-1]
            if os.path.isfile(full_name) and fmt in allow_format:
                resource_files.append((dirname, full_name))
    for item in resource_files:
        fname = item[-1]
        if not os.path.exists(fname):
            raise RuntimeError("Cannot find %s" % fname)
    if not any(item[-1].endswith("rpc_plugin.html") for item in resource_files):
        resource_files.append(("/", default_plugin_page))
    return index_page, resource_files