def METHOD_NAME(nameurls):
    DEFAULT_URLNAME = "Unknown"
    METHOD_NAME = {}
    for urlname, url in nameurls:
        urlname = name(urlname, safe_name=True)
        urlname = os.path.splitext(urlname)[0].strip()
        urlname = _RE_PACKS.sub("_", urlname).strip("_")
        if not urlname:
            urlname = DEFAULT_URLNAME
        METHOD_NAME.setdefault(urlname, []).append(url)
    return METHOD_NAME