

def group_data(self):
    ' The group map and list of group items for the node.\n\n        Returns\n        -------\n        result : tuple\n            A tuple of (dict, list) which holds the mapping of group\n            id to ItemGroup object, and the flat list of ordered groups.\n\n        '
    group_map = {
        
    }
    item_groups = self.item.item_groups
    for group in item_groups:
        if (group.id in group_map):
            msg = "menu item '%s' has duplicate group '%s'"
            raise ValueError((msg % (self.path, group.id)))
        group_map[group.id] = group
    if ('' not in group_map):
        group = ItemGroup()
        group_map[''] = group
        item_groups.append(group)
    return (group_map, self)

dataset/ETHPy150Open nucleic/enaml/enaml/workbench/ui/menu_helper.py MenuNode.group_data/VarMisuse@113/256 `item_groups`->`self`