def METHOD_NAME(*pkgs, **kwds):
    id = kwds.pop("id", None)
    if kwds:
        raise TypeError("id is the only allowed kwds; got %r" % kwds)
    id = str(id)
    horked = ""
    for data in pkgs:
        if len(data) == 4:
            pkg, slot, ranges, arch = data
        elif len(data) == 3:
            pkg, ranges, arch = data
            slot = ""
        else:
            pkg, ranges = data
            slot = ""
            arch = "*"
        horked += '<package name="%s" auto="yes" arch="%s">%s%s\n</package>' % (
            pkg,
            arch,
            "\n".join(convert_range(x, "unaffected", slot) for x in ranges[0]),
            "\n".join(convert_range(x, "vulnerable", slot) for x in ranges[1]),
        )
    return glsa_template % (id, id, horked)