def set_name_id_map(self, node, id, msgnode=None, explicit=None):
        for name in node['names']:
            if name in self.nameids:
                self.set_duplicate_name_id(node, id, name, msgnode, explicit)
            else:
                self.nameids[name] = id
                self.nametypes[name] = explicit
`self.nameids` maps names to IDs, while `self.nametypes` maps names to
dataset/ETHPy150Open adieu/allbuttonspressed/docutils/nodes.py/document.set_name_id_map